14 #ifndef __INCLUDED_SCOPIRA_CORE_LOOP_H__ 15 #define __INCLUDED_SCOPIRA_CORE_LOOP_H__ 21 #include <scopira/tool/export.h> 22 #include <scopira/tool/output.h> 23 #include <scopira/tool/fileflow.h> 24 #include <scopira/tool/netflow.h> 25 #include <scopira/tool/objflowloader.h> 75 SCOPIRA_EXPORT
basic_loop(
int &argc,
char **&argv);
78 SCOPIRA_EXPORT ~basic_loop();
86 SCOPIRA_EXPORT
void list_config(std::vector<std::string> &out)
const;
93 SCOPIRA_EXPORT
bool has_config(
const std::string &key)
const;
101 SCOPIRA_EXPORT
const std::string & get_config(
const std::string &key)
const;
113 SCOPIRA_EXPORT
bool get_config(
const std::string &key, std::string &out)
const;
120 SCOPIRA_EXPORT
void set_config(
const std::string &key,
const std::string &val);
128 SCOPIRA_EXPORT
void set_config_default(
const std::string &key,
const std::string &val);
136 SCOPIRA_EXPORT
void set_config_save(
const std::string &key,
const std::string &val);
147 SCOPIRA_EXPORT
void commit_config(
void);
156 SCOPIRA_EXPORT
static std::string config_expand(
const std::string &s);
163 SCOPIRA_EXPORT
objecttype * get_root_objecttype(
void);
203 SCOPIRA_EXPORT
static basic_loop *dm_instance;
219 value_t(
void) : pm_disk(
false), pm_creatorid(0) { }
220 value_t(
const std::string &val,
int creatorid) : pm_val(val), pm_disk(
false),
221 pm_creatorid(creatorid) { }
224 typedef std::map<std::string, value_t> configmap_t;
225 configmap_t dm_configmap;
229 struct parse_context_t {
234 parse_context_t dm_parse_context;
236 std::string dm_emptrystring;
237 std::string dm_appctx;
238 std::string dm_configdir;
242 std::vector<scopira::tool::count_ptr< scopira::tool::dll > > dm_dynlibs;
244 #ifdef PLATFORM_win32 249 void parse_config(
int argc,
char **argv);
250 void parse_config_file(
const std::string &filename,
bool cryonerrors);
251 void parse_config_string(
const std::string &s,
bool newlinesonly);
252 void parse_config_pair(
const std::string &s);
253 void process_config(
void);
254 void process_lib(
const std::string &libname);
255 void process_libdir(
const std::string &dirname);
Definition: objecttype.h:38
Definition: archiveflow.h:20
const std::string & get_config_dir(void) const
Definition: core/loop.h:178
Definition: core/loop.h:64
static basic_loop * instance(void)
returns the static instance
Definition: core/loop.h:68
const std::string & get_context_name(void) const
Definition: core/loop.h:171