1 #ifndef CASM_QueryHandler
2 #define CASM_QueryHandler
13 class ProjectSettings;
16 template <
typename DataObject>
18 template <
typename DataObject>
22 template <
typename _DataObject>
44 void add_alias(
const std::string &alias_name,
45 const std::string &alias_command);
51 const std::map<std::string, std::string> &
aliases()
const {
68 std::map<std::string, std::shared_ptr<RuntimeLibrary> >
m_lib;
72 template <
typename DataFormatterDictInserter,
typename RuntimeLibInserter>
75 RuntimeLibInserter lib_it);
Returns true if configuration is specified in given selection (default: MASTER)
QueryHandler(const ProjectSettings &set)
const std::map< std::string, std::string > & aliases() const
const Access aliases map
const ProjectSettings * m_set
DataFormatterDictionary< DataObject > & dict()
std::map< std::string, std::shared_ptr< RuntimeLibrary > > m_lib
std::map< std::string, std::string > & _aliases()
Access aliases map.
std::map< std::string, std::string > m_aliases
notstd::cloneable_ptr< DataFormatterDictionary< DataObject > > m_dict
void add_alias(const std::string &alias_name, const std::string &alias_command)
Add user-defined query alias.
void set_selected(const DB::Selected< DataObject > &selection)
Set the selection to be used for the 'selected' column.
A 'cloneable_ptr' can be used in place of 'unique_ptr'.
#define CLONEABLE_NEEDS_DESTRUCTOR_DEF(T)
std::pair< DataFormatterDictInserter, RuntimeLibInserter > load_query_plugins(const ProjectSettings &set, DataFormatterDictInserter dict_it, RuntimeLibInserter lib_it)
Load enumerator plugins from a CASM project.