25 #define ALD_CFG_ITF_NAME "ald-config" 47 virtual bool Open(
const string &filename,
const string& mode,
bool no_comment =
false) = 0;
56 virtual bool OpenTemplate(
const string &templatename,
const string &destfilename,
57 const string& mode,
bool no_comment =
false) = 0;
68 virtual void RemoveMarkers(
const string &beginmarker,
const string &endmarker) = 0;
70 virtual void RemoveALDMarkers() = 0;
77 virtual void SetParamValue(
const string ¶m,
const string &value) = 0;
82 virtual string GetParamValue(
const string ¶m) = 0;
87 virtual void RestoreParamValue(
const string ¶m) = 0;
94 virtual void SetLine(
const string &token,
const string &line) = 0;
99 virtual string GetLine(
const string &token) = 0;
104 virtual void RestoreLine(
const string &token) = 0;
109 virtual void Save(
bool no_reserve =
false) = 0;
131 virtual CALDConfigFilePtr OpenConfigFile(
const string& filename,
const string& mode,
132 bool no_comment =
false) = 0;
141 virtual CALDConfigFilePtr OpenConfigFileTemplate(
const string& templatename,
142 const string &destfilename,
144 bool no_comment =
false) = 0;
146 virtual void RecreateTemplatesMap() = 0;
153 virtual void InstallConfigFileTemplate(
const string& templatename) = 0;
161 virtual void ProcessConfigFileTemplate(
const string& templatename,
const string& destfilename,
164 virtual void ReserveConfigFile(
const string& filename) = 0;
165 virtual void RestoreConfigFile(
const string& filename) = 0;
166 virtual void RemoveConfigFileReserve(
const string& filename) = 0;
168 virtual void RemoveALDMarkersFromConfigFile(
const string& filename) = 0;
174 virtual bool UpdateConfigFileParam(
const string &name,
const string &value) = 0;
179 virtual string TemplateValue(
const string &p) = 0;
185 virtual bool TemplateValueExists(
const string &p) = 0;
191 virtual void SetTemplateValue(
const string &p,
const string &v) = 0;
197 virtual void SaveConfigStatus(
const string& mode) = 0;
203 virtual bool IsConfigStatusExist(
const string& mode) = 0;
208 virtual void RemoveConfigStatus(
const string& mode) = 0;
214 virtual void LoadConfigStatus(
const string& mode,
ald_string_map& status) = 0;
216 virtual void SaveFileServerStatus() = 0;
217 virtual string GetFileServerStatus() = 0;
218 virtual void RemoveFileServerStatus() = 0;
229 #endif // ALD_ICONFIG Объявление основного интерфейса клиента Astra Linux Directory и необходимых для него типов и интерфей...
#define ALD_CFG_ITF_NAME
Имя интерфейса конфигурирования
Definition: ald-config.h:26
Пространство имен основного интерфейса Astra Linux Directory.
Definition: action-definitions.h:9
Абстрактный класс-интерфейс конфигурирования Astra Linux Directory.
Definition: ald-config.h:120
shared_ptr< IALDConfig > CALDConfigPtr
Разделяемый указатель на интерфейс конфигурирования Astra Linux Directory.
Definition: ald-config.h:223
Базовый класс интерфейса
Definition: ALDCore.h:83
IALDCore * m_pCore
Указатель на основной интерфейс клиента IALDCore.
Definition: ald-config.h:37
IALDConfigFile(IALDCore &Core)
Конструктор
Definition: ald-config.h:39
shared_ptr< IALDConfigFile > CALDConfigFilePtr
Разделяемый указатель на интерфейс работы с конфигурационным файлом IALDConfigFile.
Definition: ald-config.h:114
map< string, string > ald_string_map
MAP строка => строка
Definition: ALDUtils.h:164
Абстрактный класс-интерфейс работы с конфигурационным файлом
Definition: ald-config.h:34
virtual ~IALDConfig()
Деструктор
Definition: ald-config.h:220
virtual ~IALDConfigFile()
Деструктор
Definition: ald-config.h:111
Основной заголовочный файл, содержащий необходимый минимум предварительных объявлений и включений дру...
IALDConfig(IALDCore &Core)
Конструктор
Definition: ald-config.h:123
Конфигурационные определения для подсистемы локализации Gettext.
Абстрактный класс IALDCore - основной интерфейс клиента Astra Linux Directory, с помощью которого вып...
Definition: ALDCore.h:241