LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
Lima::Node Class Reference

noeud de contenu au sein d'une structure. More...

#include <common/Data/DataTypes.h>

Public Member Functions

 Node ()
 default constructor
 
virtual ~Node ()
 default destructor
 
 Node (const Node &n)
 copy constructor
 
Node & operator= (const Node &n)
 
 Node (const std::string &docName, STRUCT_ID structId, NODE_ID nodeId, CONTENT_ID contentId, int indexid, std::string uri, std::string nodeMedia, std::string nodeType, std::string descrId, TOPO_POS nodeStart, TOPO_POS nodeEnd, TOPO_POS nodeLength, NODE_ID nodeParent)
 main constructor
 
std::string get_DocName () const
 
void set_DocName (const std::string &docName)
 
STRUCT_ID get_StructId () const
 
void set_StructId (STRUCT_ID structId)
 
NODE_ID get_NodeId () const
 
void set_NodeId (NODE_ID NodeId)
 
CONTENT_ID get_ContentId () const
 
void set_ContentId (CONTENT_ID ContentId)
 
const std::string & nodeType () const
 
int32_t indexId () const
 
void indexId (int32_t id)
 
const std::string & descrId () const
 
TOPO_POS nodeStart () const
 
void nodeStart (TOPO_POS ns)
 
TOPO_POS nodeEnd () const
 
void nodeEnd (TOPO_POS ns)
 
TOPO_POS nodeLength () const
 
void nodeLength (TOPO_POS ns)
 
NODE_ID nodeParent () const
 
void nodeParent (NODE_ID np)
 
const std::string & uri () const
 
const std::string & nodeMedia () const
 

Detailed Description

noeud de contenu au sein d'une structure.

Un noeud de contenu est caractérisé par trois identifiants au sein de la structure (structId,nodeId,contentId) ainsi que par le type de contenu (descrId). Il existe aussi un identifiant au sein de la base de contenu correspondante (contentId dans la base SQL) qui n'est pas dans la classe Node

Definition at line 61 of file DataTypes.h.

Constructor & Destructor Documentation

◆ Node() [1/3]

Lima::Node::Node ( )

default constructor

Definition at line 128 of file DataTypes.cpp.

◆ ~Node()

Lima::Node::~Node ( )
virtual

default destructor

Definition at line 129 of file DataTypes.cpp.

◆ Node() [2/3]

Lima::Node::Node ( const Node &  n)

copy constructor

Definition at line 130 of file DataTypes.cpp.

◆ Node() [3/3]

Lima::Node::Node ( const std::string &  docName,
STRUCT_ID  structId,
NODE_ID  nodeId,
CONTENT_ID  contentId,
int  indexid,
std::string  uri,
std::string  nodeMedia,
std::string  nodeType,
std::string  descrId,
TOPO_POS  nodeStart,
TOPO_POS  nodeEnd,
TOPO_POS  nodeLength,
NODE_ID  nodeParent 
)

main constructor

Parameters
docName
structId
nodeId
contentId
indexid
uri
nodeMedia
nodeType
descrId
nodeStart
nodeEnd
nodeLength
nodeParent

Definition at line 145 of file DataTypes.cpp.

Member Function Documentation

◆ descrId()

const std::string & Lima::Node::descrId ( ) const

Definition at line 217 of file DataTypes.cpp.

◆ get_ContentId()

CONTENT_ID Lima::Node::get_ContentId ( ) const

Definition at line 198 of file DataTypes.cpp.

◆ get_DocName()

std::string Lima::Node::get_DocName ( ) const

Definition at line 174 of file DataTypes.cpp.

◆ get_NodeId()

NODE_ID Lima::Node::get_NodeId ( ) const

Definition at line 190 of file DataTypes.cpp.

◆ get_StructId()

STRUCT_ID Lima::Node::get_StructId ( ) const

Definition at line 182 of file DataTypes.cpp.

◆ indexId() [1/2]

int32_t Lima::Node::indexId ( ) const

Definition at line 207 of file DataTypes.cpp.

◆ indexId() [2/2]

void Lima::Node::indexId ( int32_t  id)

Definition at line 212 of file DataTypes.cpp.

◆ nodeEnd() [1/2]

TOPO_POS Lima::Node::nodeEnd ( ) const

Definition at line 232 of file DataTypes.cpp.

◆ nodeEnd() [2/2]

void Lima::Node::nodeEnd ( TOPO_POS  ns)

Definition at line 264 of file DataTypes.cpp.

◆ nodeLength() [1/2]

TOPO_POS Lima::Node::nodeLength ( ) const

Definition at line 238 of file DataTypes.cpp.

◆ nodeLength() [2/2]

void Lima::Node::nodeLength ( TOPO_POS  ns)

Definition at line 269 of file DataTypes.cpp.

◆ nodeMedia()

const std::string & Lima::Node::nodeMedia ( ) const

Definition at line 254 of file DataTypes.cpp.

◆ nodeParent() [1/2]

NODE_ID Lima::Node::nodeParent ( ) const

Definition at line 244 of file DataTypes.cpp.

◆ nodeParent() [2/2]

void Lima::Node::nodeParent ( NODE_ID  np)

Definition at line 274 of file DataTypes.cpp.

◆ nodeStart() [1/2]

TOPO_POS Lima::Node::nodeStart ( ) const

Definition at line 227 of file DataTypes.cpp.

◆ nodeStart() [2/2]

void Lima::Node::nodeStart ( TOPO_POS  ns)

Definition at line 259 of file DataTypes.cpp.

◆ nodeType()

const std::string & Lima::Node::nodeType ( ) const

Definition at line 222 of file DataTypes.cpp.

◆ operator=()

Node & Lima::Node::operator= ( const Node &  n)

Definition at line 132 of file DataTypes.cpp.

◆ set_ContentId()

void Lima::Node::set_ContentId ( CONTENT_ID  ContentId)

Definition at line 202 of file DataTypes.cpp.

◆ set_DocName()

void Lima::Node::set_DocName ( const std::string &  docName)

Definition at line 178 of file DataTypes.cpp.

◆ set_NodeId()

void Lima::Node::set_NodeId ( NODE_ID  NodeId)

Definition at line 194 of file DataTypes.cpp.

◆ set_StructId()

void Lima::Node::set_StructId ( STRUCT_ID  structId)

Definition at line 186 of file DataTypes.cpp.

◆ uri()

const std::string & Lima::Node::uri ( ) const

Definition at line 249 of file DataTypes.cpp.


The documentation for this class was generated from the following files: