21 #ifndef ObjectIndex_XML_H_
22 #define ObjectIndex_XML_H_
24 #include <unordered_map>
28 #include "ObjectIndex.h"
40 ObjectIndex_XML(
const std::shared_ptr<UniXML>& xml,
size_t minSize = 1000 );
44 virtual const uniset::ObjectInfo* getObjectInfo(
const std::string& name )
const noexcept
override;
49 virtual std::ostream& printMap(std::ostream& os)
const noexcept
override;
50 friend std::ostream& operator<<(std::ostream& os,
ObjectIndex_XML& oi );
53 void build(
const std::shared_ptr<UniXML>& xml );
54 size_t read_section(
const std::shared_ptr<UniXML>& xml,
const std::string& sec,
size_t ind );
55 size_t read_nodes(
const std::shared_ptr<UniXML>& xml,
const std::string& sec,
size_t ind );
58 typedef std::unordered_map<std::string, ObjectId> MapObjectKey;
60 std::vector<ObjectInfo> omap;
Definition: CallbackTimer.h:29
Definition: ObjectIndex_XML.h:35
Definition: ObjectIndex.h:30
virtual ObjectId getIdByName(const std::string &name) const noexceptoverride
Definition: ObjectIndex_XML.cc:50
virtual std::string getMapName(const ObjectId id) const noexceptoverride
Definition: ObjectIndex_XML.cc:64
virtual std::string getTextName(const ObjectId id) const noexceptoverride
Definition: ObjectIndex_XML.cc:72
Definition: UniSetTypes.h:141
long ObjectId
Definition: UniSetTypes_i.idl:30