ADTF
Loading...
Searching...
No Matches
map_header.h
Go to the documentation of this file.
1
13
14#ifndef HEADER_MAP_HEADER_H
15#define HEADER_MAP_HEADER_H
16
17#include <a_util/result.h>
18#include <a_util/xml.h>
19
20#include <string>
21#include <vector>
22
23namespace ddl {
24namespace mapping {
25
26typedef std::vector<std::string> MapErrorList;
27
31class MapHeader {
32public:
37
42 const std::string& getDescription() const;
43
48 const std::string& getDllPaths() const;
49
54 const std::string& getLanguageVersion() const;
55
60 const std::string& getAuthor() const;
61
66 const std::string& getCreationDate() const;
67
72 const std::string& getModificationDate() const;
73
74private:
78 void reset();
79
87 a_util::result::Result loadFromDOM(const a_util::xml::DOMElement& header, MapErrorList& errors);
88
95 a_util::result::Result writeToDOM(a_util::xml::DOMElement dom_element);
96
102 a_util::result::Result setDescription(const std::string& description);
103
109 a_util::result::Result setDdlPaths(const std::string& ddl_paths);
110
119 a_util::result::Result parseVersion(const std::string& version, MapErrorList& lstErrors);
120
121private:
123 friend class MapConfiguration;
124 std::string _lang_version;
125 std::string _author;
126 std::string _desc;
127 std::string _ddl;
128 std::string _creation_date;
129 std::string _mod_date;
131};
132
133} // namespace mapping
134} // namespace ddl
135
136#endif // HEADER_MAP_HEADER_H
Definition result_type_decl.h:34
Representation for an element in the DOM.
Definition dom.h:47
Definition map_configuration.h:36
const std::string & getModificationDate() const
const std::string & getDescription() const
const std::string & getCreationDate() const
const std::string & getDllPaths() const
const std::string & getAuthor() const
const std::string & getLanguageVersion() const
definition of the mapping namespace
Definition ddl.h:50
std::vector< std::string > MapErrorList
container type for mapping errors
Definition map_assignment.h:29
definition of the ddl namespace
Definition codec.h:21