CYCLUS
Public Member Functions | List of all members
cyclus::QueryableBackend Class Referenceabstract

Detailed Description

Interface implemented by backends that support rudimentary querying.

Definition at line 421 of file query_backend.h.

#include <query_backend.h>

Inheritance diagram for cyclus::QueryableBackend:
cyclus::CondInjector cyclus::FullBackend cyclus::PrefixInjector cyclus::Hdf5Back cyclus::SqliteBack

Public Member Functions

virtual std::map< std::string, DbTypesColumnTypes (std::string table)=0
 
virtual QueryResult Query (std::string table, std::vector< Cond > *conds)=0
 
virtual std::set< std::string > Tables ()=0
 
virtual ~QueryableBackend ()
 

Constructor & Destructor Documentation

virtual cyclus::QueryableBackend::~QueryableBackend ( )
inlinevirtual

Definition at line 423 of file query_backend.h.

Member Function Documentation

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

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

Implemented in cyclus::PrefixInjector, cyclus::CondInjector, cyclus::Hdf5Back, and cyclus::SqliteBack.

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

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

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

Implemented in cyclus::PrefixInjector, cyclus::CondInjector, cyclus::Hdf5Back, and cyclus::SqliteBack.

virtual std::set<std::string> cyclus::QueryableBackend::Tables ( )
pure virtual

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

Implemented in cyclus::PrefixInjector, cyclus::CondInjector, cyclus::Hdf5Back, and cyclus::SqliteBack.


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