ADTF  3.18.2
MapHeader

MapHeader contains all information from the header-Tag of a mapping configuration. More...

Public Member Functions

 MapHeader ()
 CTOR.
 
const std::string & getDescription () const
 Returns the description from the header tag or an empty string. More...
 
const std::string & getDllPaths () const
 Returns the list of dll paths from the "ddl" header tag or an empty string. More...
 
const std::string & getLanguageVersion () const
 Returns the version from the language_version-header tag or an empty string. More...
 
const std::string & getAuthor () const
 Returns the author from the author-header tag or an empty string. More...
 
const std::string & getCreationDate () const
 Returns the date from the date_creation-header tag or an empty string. More...
 
const std::string & getModificationDate () const
 Returns the date from the date_change-header tag or an empty string. More...
 

Private Member Functions

void reset ()
 Resets the instance to its initial state.
 
a_util::result::Result loadFromDOM (const a_util::xml::DOMElement &header, MapErrorList &errors)
 Initializes the header from a header-dom element. More...
 
a_util::result::Result writeToDOM (a_util::xml::DOMElement dom_element)
 Export header to a XML dom element. More...
 
a_util::result::Result setDescription (const std::string &description)
 Set description. More...
 
a_util::result::Result setDdlPaths (const std::string &ddl_paths)
 Set ddl paths. More...
 
a_util::result::Result parseVersion (const std::string &version, MapErrorList &lstErrors)
 Parses the language version string. More...
 

Detailed Description

MapHeader contains all information from the header-Tag of a mapping configuration.

Definition at line 31 of file map_header.h.

Member Function Documentation

◆ getAuthor()

const std::string& getAuthor ( ) const

Returns the author from the author-header tag or an empty string.

Returns
the author

◆ getCreationDate()

const std::string& getCreationDate ( ) const

Returns the date from the date_creation-header tag or an empty string.

Returns
the date of creation

◆ getDescription()

const std::string& getDescription ( ) const

Returns the description from the header tag or an empty string.

Returns
the description

◆ getDllPaths()

const std::string& getDllPaths ( ) const

Returns the list of dll paths from the "ddl" header tag or an empty string.

Returns
the dll paths

◆ getLanguageVersion()

const std::string& getLanguageVersion ( ) const

Returns the version from the language_version-header tag or an empty string.

Returns
the language version

◆ getModificationDate()

const std::string& getModificationDate ( ) const

Returns the date from the date_change-header tag or an empty string.

Returns
the modification date

◆ loadFromDOM()

a_util::result::Result loadFromDOM ( const a_util::xml::DOMElement header,
MapErrorList errors 
)
private

Initializes the header from a header-dom element.

Parameters
[in]headerThe dom element from which to import
[out]errorsThe error list for debug
Return values
ERR_INVALID_ARGField missing
a_util::result::SUCCESSEverything went fine

◆ parseVersion()

a_util::result::Result parseVersion ( const std::string &  version,
MapErrorList lstErrors 
)
private

Parses the language version string.

Parameters
[in]version_stringThe version string
[out]minor_versionThe parsed minor version if conversion was successful
[out]major_versionThe parsed major version if conversion was successful
[out]errorsThe error list for debug
Return values
a_util::result::SUCCESSEverything went fine

◆ setDdlPaths()

a_util::result::Result setDdlPaths ( const std::string &  ddl_paths)
private

Set ddl paths.

Parameters
[in]ddl_pathsThe string containing ddl paths
Return values
a_util::result::SUCCESSEverything went fine

◆ setDescription()

a_util::result::Result setDescription ( const std::string &  description)
private

Set description.

Parameters
[in]descriptionThe description
Return values
a_util::result::SUCCESSEverything went fine

◆ writeToDOM()

a_util::result::Result writeToDOM ( a_util::xml::DOMElement  dom_element)
private

Export header to a XML dom element.

Parameters
[out]dom_elementThe dom element to be written
Return values
a_util::result::SUCCESSEverything went fine