39 class ObjectIndex_XML:
43 ObjectIndex_XML(
const std::string& xmlfile,
size_t minSize = 1000 );
44 ObjectIndex_XML(
const std::shared_ptr<UniXML>& xml,
size_t minSize = 1000 );
45 virtual ~ObjectIndex_XML();
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;