31 std::string nodeMedia,
151 std::string nodeMedia,
152 std::string nodeType,
153 std::string descrId ,
303 m_structId(
std::numeric_limits< uint64_t >::max())
309 m_structId(sp.m_structId)
372 m_d->
m_nodes[ContentId] = node;
379 return &m_d->
m_nodes[ContentId];
386 return &m_d->
m_nodes[ContentId];
407 for (
auto ItrNodes=m_d->
m_nodes.begin();
408 ItrNodes!=m_d->
m_nodes.end(); ItrNodes++)
410 if ((ItrNodes->second.nodeType() ==
"topic"))
412 return getNode(ItrNodes->first);
421 for (
auto nodesIt=m_d->
m_nodes.begin(); nodesIt!=m_d->
m_nodes.end();nodesIt++)
423 if ((nodesIt->second.nodeType() ==
"topic"))
425 return getNode(nodesIt->first);
444 <<
", indexId:" << node.
indexId()
445 <<
", descrId:" << node.
descrId()
448 <<
", nodeEnd:" << node.
nodeEnd()
450 <<
", nodeParent:" << node.
nodeParent() <<
")";
456 const auto& nodes = structure.
getNodes();
457 os <<
"Structure( structId:" << structure.
getStructId()
458 <<
", nodes ("<<nodes.size()<<
"): ";
459 for (
auto ItrNodes = nodes.cbegin(); ItrNodes != nodes.cend(); ItrNodes++)
461 os <<
"node (" << ItrNodes->first <<
":" << ItrNodes->second<<
")";
469 const auto& nodes = structure.
getNodes();
470 os <<
"Structure( structId:" << structure.
getStructId()
471 <<
", nodes ("<<nodes.size()<<
"): ";
472 for (
auto ItrNodes = nodes.cbegin(); ItrNodes != nodes.cend() ; ItrNodes++)
474 os <<
"node (" << ItrNodes->first <<
":" << ItrNodes->second<<
")";
CONTENT_ID m_contentId
identifiant de contenu au sein de la structure.
NODE_ID m_nodeId
identifiant de noeud au sein de la structure.
NodePrivate & operator=(const NodePrivate &n)
std::string m_descrId
identifiant de type de contenu
STRUCT_ID m_structId
identifiant de structure
noeud de contenu au sein d'une structure.
const std::string & nodeMedia() const
Node & operator=(const Node &n)
void set_ContentId(CONTENT_ID ContentId)
void set_StructId(STRUCT_ID structId)
Node()
default constructor
STRUCT_ID get_StructId() const
TOPO_POS nodeStart() const
const std::string & nodeType() const
const std::string & descrId() const
CONTENT_ID get_ContentId() const
TOPO_POS nodeLength() const
NODE_ID nodeParent() const
void set_DocName(const std::string &docName)
virtual ~Node()
default destructor
const std::string & uri() const
void set_NodeId(NODE_ID NodeId)
std::string get_DocName() const
NODE_ID get_NodeId() const
StructurePrivate & operator=(const StructurePrivate &sp)
STRUCT_ID m_structId
the numeric identifier of the current structure
std::map< CONTENT_ID, Node > m_nodes
the set of
~StructurePrivate()
destructeur: delete des 'Nodes' de contenu
~Structure()
destructeur: delete des 'Nodes' de contenu
Node * getNode(CONTENT_ID ContentId)
get a content node, given its identifiers
Structure & operator=(const Structure &s)
void addNode(const Node &node)
const std::map< CONTENT_ID, Node > & getNodes() const
get all nodes of the current structure
Node * getFirstNode(STRUCT_ID)
get a content node, given its identifiers
STRUCT_ID getStructId() const
void setStructId(STRUCT_ID structId)
uint64_t CONTENT_ID
Identifier of an feature content.
uint64_t STRUCT_ID
Identifier of a structure in the structure index.
std::ostream & operator<<(ostream &os, const Node &node)
uint64_t NODE_ID
Identifier of a node in a document.
uint64_t TOPO_POS
Topology information.