68 #if ALIB_DEBUG && !ALIB_DEBUG_ASSERTION_PRINTABLES
70 "Export or import sequence not completed before deleting the INI-file.\n"
71 "Filename of previous sequence: {}",
iniFile->FileName )
119 "Export or import sequence not completed before starting a new one.\n"
120 "Previous filename: ",
iniFile->FileName )
142 ALIB_ERROR(
"VARIABLES",
"No INI-file loaded when trying to end import/export." )
159 ALIB_ERROR(
"VARIABLES",
"No INI-file loaded when trying to import data." )
192 auto remainder= cursor.GoTo(path);
193 if( remainder.IsNotEmpty() )
195 ALIB_WARNING(
"VARIABLES",
"Configuration variable path \"{}\" to export not found.",
230 auto remainder= cursor.GoTo(path);
231 if( remainder.IsNotEmpty() )
233 ALIB_WARNING(
"VARIABLES",
"Configuration variable path \"{}\" to export not found.")
253 std::pair<IniFile::Section*, IniFile::Entry*>
SearchEntry (
const String& path );
301 const NString& resourceCategory,
302 const NString& resourceNamePrefix );
312 "No INI-file loaded when trying to access it." )
IniFile * ExportStart(const system::Path &path)
void ExportEnd()
Closes and deletes the internal iniFile instance without writing an opened INI-file.
String DefaultCommentPrefix
ALIB_DLL std::pair< IniFile::Section *, IniFile::Entry * > SearchEntry(const Variable &variable)
ALIB_DLL int AddResourcedSectionComments(ResourcePool &resourcePool, const NString &resourceCategory, const NString &resourceNamePrefix)
ALIB_DLL int ExportSubTree(Configuration::Cursor cursor, bool directChildrenOnly=false)
IniFile * iniFile
The INI-file. Created with methods ImportStart and ExportStart.
void ExportEnd(const system::Path &path)
bool Export(const String &path)
ALIB_DLL bool SetWriteBackFlag(const String &path)
Configuration & configuration
The configuration to work with. Set with construction.
ALIB_DLL int ImportSection(const String §ionName)
void ImportEnd()
Closes and deletes the internal iniFile instance.
ALIB_DLL int importSection(IniFile::Section §ion)
IniFile * ImportStart(const system::Path &path)
Priority priority
The priority to use to define variables. Set with construction.
ALIB_DLL bool Export(const Variable &var)
int ExportSubTree(const String &path, bool directChildrenOnly=false)
IniFileFeeder(Configuration &pConfiguration, Priority pPriority=Priority::ConfigFile)
#define ALIB_WARNING(domain,...)
#define ALIB_ASSERT_WARNING(cond, domain,...)
#define ALIB_ERROR(domain,...)
#define ALIB_ASSERT_ERROR(cond, domain,...)
variables::IniFileFeeder IniFileFeeder
Type alias in namespace alib.
variables::Variable Variable
Type alias in namespace alib.
strings::TString< nchar > NString
Type alias in namespace alib.
resources::ResourcePool ResourcePool
Type alias in namespace alib.
strings::TString< character > String
Type alias in namespace alib.
A section of the INI-file.