21#ifndef __ANTARES_LIBS_ADMIN_POLICY_H__
22#define __ANTARES_LIBS_ADMIN_POLICY_H__
25#include <yuni/core/singleton.h>
26#include <yuni/core/string.h>
44bool 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:296
bool Read(YString &out, const PolicyKey &key)
Read the content of a single entry.
void DumpToLogs()
Dump the entries to the logs.
Definition policy.cpp:354
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:375
Yuni::ShortString64 PolicyKey
A key entry.
Definition policy.h:34
void Close()
Close all resources related to the local policies.
Definition policy.cpp:262
bool Open(bool expandEntries=true)
Open the local policies.
Definition policy.cpp:179