74 #if ALIB_DEBUG && !ALIB_DEBUG_ASSERTION_PRINTABLES
76 "Export or import sequence not completed before deleting the INI-file.\n"
77 "Filename of previous sequence: {}",
iniFile->FileName )
122 "Export or import sequence not completed before starting a new one.\n"
123 "Previous filename: ",
iniFile->FileName )
147 ALIB_ERROR(
"VARIABLES",
"No INI-file loaded when trying to end import/export." )
162 ALIB_ERROR(
"VARIABLES",
"No INI-file loaded when trying to import data." )
194 auto remainder= cursor.GoTo(path);
195 if( remainder.IsNotEmpty() ) {
196 ALIB_WARNING(
"VARIABLES",
"Configuration variable path \"{}\" to export not found.",
230 auto remainder= cursor.GoTo(path);
231 if( remainder.IsNotEmpty() ) {
298 const NString& resourceCategory,
299 const NString& resourceNamePrefix );
308 const NString& resourceNamePrefix ) {
311 resourceNamePrefix );
321 "No INI-file loaded when trying to access it." )
#define ALIB_WARNING(domain,...)
#define ALIB_ASSERT_WARNING(cond, domain,...)
#define ALIB_ERROR(domain,...)
#define ALIB_ASSERT_ERROR(cond, domain,...)
const Enum & Type() const
NCString ResourceCategory
ResourcePool & GetResourcePool()
void ExportEnd()
Closes and deletes the internal iniFile instance without writing an opened INI-file.
String DefaultCommentPrefix
int AddResourcedSectionComments(ResourcePool &resourcePool, const NString &resourceCategory, const NString &resourceNamePrefix)
int ExportSubTree(Configuration::Cursor cursor, bool directChildrenOnly=false)
int ImportStart(const system::Path &path)
IniFile * iniFile
The INI-file. Created with methods #"ImportStart" and #"ExportStart".
void ExportEnd(const system::Path &path)
bool Export(const String &path)
bool SetWriteBackFlag(const String &path)
bool DidNotExistOrWasEmpty
Configuration & configuration
The configuration to work with. Set with construction.
int ImportSection(const String §ionName)
void ImportEnd()
Closes and deletes the internal iniFile instance.
int importSection(IniFile::Section §ion)
Priority priority
The priority to use to define variables. Set with construction.
int ExportStart(const system::Path &path)
int AddResourcedSectionComments(resources::ResourceHolder &resourceHolder, const NString &resourceNamePrefix)
bool Export(const Variable &var)
int ExportSubTree(const String &path, bool directChildrenOnly=false)
IniFile::Handle SearchEntry(const Variable &variable)
IniFileFeeder(Configuration &pConfiguration, Priority pPriority=Priority::ConfigFile)
@ ErrorOpeningFile
File not found when reading.
strings::TString< nchar > NString
Type alias in namespace alib.
resources::ResourcePool ResourcePool
Type alias in namespace alib.
variables::Variable Variable
Type alias in namespace alib.
strings::TString< character > String
Type alias in namespace alib.
exceptions::Exception Exception
Type alias in namespace alib.
variables::IniFileFeeder IniFileFeeder
Type alias in namespace alib.
A pair of pointers to a section and an entry in the section.
A section of the INI-file.