Public Member Functions | List of all members
cyclus::CondInjector Class Reference

Detailed Description

Wrapper class for QueryableBackends that injects a set of Cond's into every query before being executed.

Definition at line 445 of file query_backend.h.

#include <query_backend.h>

Inheritance diagram for cyclus::CondInjector:

Public Member Functions

virtual std::map< std::string, DbTypesColumnTypes (std::string table)
 CondInjector (QueryableBackend *b, std::vector< Cond > to_inject)
virtual QueryResult Query (std::string table, std::vector< Cond > *conds)
virtual std::set< std::string > Tables ()
- Public Member Functions inherited from cyclus::QueryableBackend
virtual ~QueryableBackend ()

Constructor & Destructor Documentation

cyclus::CondInjector::CondInjector ( QueryableBackend b,
std::vector< Cond to_inject 

Definition at line 447 of file query_backend.h.

Member Function Documentation

virtual std::map<std::string, DbTypes> cyclus::CondInjector::ColumnTypes ( std::string  table)

Return a map of column names of the specified table to the associated database type.

Implements cyclus::QueryableBackend.

Definition at line 463 of file query_backend.h.

virtual QueryResult cyclus::CondInjector::Query ( std::string  table,
std::vector< Cond > *  conds 

Return a set of rows from the specificed table that match all given conditions.

Conditions are AND'd together. conds may be NULL.

Implements cyclus::QueryableBackend.

Definition at line 451 of file query_backend.h.

virtual std::set<std::string> cyclus::CondInjector::Tables ( )

Return a set of all table names currently in the database.

Implements cyclus::QueryableBackend.

Definition at line 467 of file query_backend.h.

The documentation for this class was generated from the following file: