1 #ifndef WSJCPP_EMPLOYEES_H 2 #define WSJCPP_EMPLOYEES_H 16 const std::string &sName,
17 const std::vector<std::string> &vLoadAfter
20 virtual bool init() = 0;
22 const std::vector<std::string> &
loadAfter();
38 static void initGlobalVariables();
39 static void deinitGlobalVariables();
41 static bool init(
const std::vector<std::string> &vLoadAfter);
47 #define REGISTRY_WJSCPP_EMPLOY( classname ) \ 48 static classname * pWJSCppRegistryEmploy ## classname = new classname(); \ 55 std::string
TAG =
"findWsjcppEmploy";
56 std::string sEmployName = T::name();
61 if (pEmploy == NULL) {
64 T *pTEmploy =
dynamic_cast<T*
>(pEmploy);
65 if (pTEmploy == NULL) {
77 static std::string
name() {
return "WJSCppEmployRuntimeGlobalCache"; }
78 virtual bool init()
override;
79 virtual bool deinit()
override;
80 void set(
const std::string &sName,
const std::string &sValue);
81 bool has(
const std::string &sName);
82 std::string
get(
const std::string &sName);
89 #endif // WSJCPP_EMPLOYEES_H WsjcppEmployBase(const std::string &sName, const std::vector< std::string > &vLoadAfter)
Definition: wsjcpp_employees.cpp:165
std::vector< std::string > m_vLoadAfter
Definition: wsjcpp_employees.h:27
Definition: wsjcpp_employees.h:74
std::string TAG
Definition: wsjcpp_employees.h:25
T * findWsjcppEmploy()
Definition: wsjcpp_employees.h:53
std::vector< std::string > * g_pWsjcppInitEmployees
Definition: wsjcpp_employees.cpp:9
static void initGlobalVariables()
Definition: wsjcpp_employees.cpp:14
std::map< std::string, WsjcppEmployBase * > * g_pWsjcppEmployees
Definition: wsjcpp_employees.cpp:8
Definition: wsjcpp_employees.h:13
Definition: wsjcpp_employees.h:36
std::string m_sName
Definition: wsjcpp_employees.h:26
std::map< std::string, std::string > m_sStringMap
Definition: wsjcpp_employees.h:86
const std::vector< std::string > & loadAfter()
Definition: wsjcpp_employees.cpp:183
static std::string name()
Definition: wsjcpp_employees.h:77
virtual ~WsjcppEmployBase()
Definition: wsjcpp_employees.cpp:177
std::string TAG
Definition: wsjcpp_employees.h:85
static void throw_err(const std::string &sTag, const std::string &sMessage)
Definition: wsjcpp_core.cpp:1122