58 virtual bool setup(std::shared_ptr<const json::Object> config);
76 const std::shared_ptr<const json::Object>
getConfig();
153 std::mutex & getMutex();
162 #endif // BASECLASS_H virtual ~BaseClass()
BaseClass destructor.
Definition: baseclass.cpp:17
const std::string & getDefaultAuthor()
Function to retrieve the name of the default author.
Definition: baseclass.cpp:77
std::shared_ptr< const json::Object > m_Config
A shared pointer to the json::Object that holds the configuration.
Definition: baseclass.h:128
The neic-glass3 project namespace containing all the classes and functions that make up neic-glass3...
glass3::util::BaseClass class - encapsulates the most basic setup and configuration logic...
Definition: baseclass.h:30
std::string m_DefaultAgencyID
A std::string containing the default agency id to use in parsing if one is not provided.
Definition: baseclass.h:140
void setDefaultAgencyId(const std::string &id)
Function to set the name of the default agency id.
Definition: baseclass.cpp:71
virtual bool setup(std::shared_ptr< const json::Object > config)
BaseClass configuration function.
Definition: baseclass.cpp:21
const std::shared_ptr< const json::Object > getConfig()
Definition: baseclass.cpp:49
std::atomic< bool > m_bIsSetup
the boolean flag indicating whether the class has been setup, set to true if setup was successful...
Definition: baseclass.h:134
void setDefaultAuthor(const std::string &author)
Function to set the name of the default author.
Definition: baseclass.cpp:83
std::string m_DefaultAuthor
A std::string containing the default author to use in parsing if one is not provided.
Definition: baseclass.h:146
BaseClass()
BaseClass constructor.
Definition: baseclass.cpp:12
const std::string & getDefaultAgencyId()
Function to retrieve the name of the default agency id.
Definition: baseclass.cpp:65
bool getSetup()
Retrieves the class member boolean flag indicating whether the class has been setup, set to true if setup was successful.
Definition: baseclass.cpp:55
virtual void clear()
BaseClass clear function.
Definition: baseclass.cpp:37