21 #ifndef __ANTARES_LIBS_ADMIN_POLICY_H__
22 #define __ANTARES_LIBS_ADMIN_POLICY_H__
24 #include <yuni/yuni.h>
25 #include <yuni/core/singleton.h>
26 #include <yuni/core/string.h>
44 bool Open(
bool expandEntries =
true);
Local policy settings.
Definition: policy.h:32
bool ReadAsBool(const PolicyKey &key, bool defval=false)
Read the content of a single entry as a bool.
Definition: policy.cpp:294
bool Read(YString &out, const PolicyKey &key)
Read the content of a single entry.
Yuni::ShortString64 PolicyKey
A key entry.
Definition: policy.h:34
void DumpToLogs()
Dump the entries to the logs.
Definition: policy.cpp:350
void DumpToString(Yuni::Clob &out)
Dump to string.
void CheckRootPrefix(const char *argv0)
Check the root prefix, and throws a FatalError if fails.
Definition: policy.cpp:368
void Close()
Close all resources related to the local policies.
Definition: policy.cpp:260
bool Open(bool expandEntries=true)
Open the local policies.
Definition: policy.cpp:177