21#ifndef ObjectIndex_XML_H_
22#define ObjectIndex_XML_H_
24#include <unordered_map>
28#include "ObjectIndex.h"
44 ObjectIndex_XML(
const std::shared_ptr<UniXML>& xml,
size_t minSize = 1000 );
48 virtual const uniset::ObjectInfo* getObjectInfo(
const std::string& name )
const noexcept override;
53 virtual std::ostream& printMap(std::ostream& os)
const noexcept override;
54 friend std::ostream& operator<<(std::ostream& os,
ObjectIndex_XML& oi );
57 void build(
const std::shared_ptr<UniXML>& xml );
58 size_t read_section(
const std::shared_ptr<UniXML>& xml,
const std::string& sec,
size_t ind );
59 size_t read_nodes(
const std::shared_ptr<UniXML>& xml,
const std::string& sec,
size_t ind );
62 typedef std::unordered_map<std::string, ObjectId> MapObjectKey;
64 std::vector<ObjectInfo> omap;
Definition ObjectIndex_XML.h:41
virtual std::string getTextName(const ObjectId id) const noexcept override
Definition ObjectIndex_XML.cc:73
virtual std::string getMapName(const ObjectId id) const noexcept override
Definition ObjectIndex_XML.cc:65
virtual ObjectId getIdByName(const std::string &name) const noexcept override
Definition ObjectIndex_XML.cc:51
Definition ObjectIndex.h:32
Definition Calibration.h:27
long ObjectId
Definition UniSetTypes_i.idl:30
Definition UniSetTypes.h:156