27 #include "../../geometry/Envelope.h"
28 #include "../../dataaccess/datasource/DataSource.h"
29 #include "../Globals.h"
122 std::string tableName =
"";
138 std::string tableName =
"";
154 if(m_vertexProp == 0)
159 m_vertexProp->add(p);
164 if(m_vertexProp != 0)
168 m_vertexProp->remove(p);
174 if(m_vertexProp != 0)
176 return m_vertexProp->getProperty(idx);
184 if(m_vertexProp != 0)
186 return m_vertexProp->getProperties().size();
208 m_edgeProp->remove(p);
216 return m_edgeProp->getProperty(idx);
226 return m_edgeProp->getProperties().size();
GraphMetadata(te::da::DataSource *ds)
Default constructor.
GraphClass getClass()
It returns the the graph class (defined in Enums file)
virtual void setEnvelope(te::gm::Envelope &extent)
Used to set the bounding box of the geometry elements associated with this graph. ...
static const int sm_graphVecCacheDefaultMaxSize
This definition is used to set the max graph cache vector size.
GraphStorageMode getStorageMode()
It returns the the graph storage mode (defined in Enums file)
std::string getEdgeTableName()
It returns the edge table name that contains the vertex elements in data source.
virtual te::dt::Property * getVertexProperty(int idx)
Get a vertex property given a index.
virtual int getVertexPropertySize()
Used to verify the number of properties associated to vertex elements.
std::string getName()
It returns the graph name.
void setStorageMode(GraphStorageMode value)
Set the graph storage mode (defined in Enums file)
virtual void addVertexProperty(te::dt::Property *p)
Add a new property associated to the vertex element.
This class is used to define a set of properties of a Edge.
static const std::string sm_tableVertexModelSufixName
Database Model Vertex Model Table Name.
std::string getVertexTableName()
It returns the vertex table name that contains the vertex elements in data source.
virtual te::dt::Property * getEdgeProperty(int idx)
Get a edge property given a index.
virtual void addEdgeProperty(te::dt::Property *p)
Add a new property associated to the edge element.
static const int sm_boxLoaderStrategyDefaultSize
This definition is used to set the default box strategy loader box size.
void setName(std::string name)
Set the graph name.
virtual te::gm::Envelope * getEnvelope()
Used to get the bounding box of the geometry elements associated with this graph. ...
size_t m_maxVecCacheSize
Attribute used to set the max vector cache size.
static const std::string sm_tableEdgeModelSufixName
Database Model Edge Model Table Name.
int getId()
It returns the graph id.
static const std::string sm_tableEdgeAttributeModelSufixName
Database Model Edge Attribute Model Table Name.
virtual void removeVertexProperty(int idx)
Remove a property associated to the vertex element.
void setClass(GraphClass value)
Set the graph class (defined in Enums file)
An abstract class for data providers like a DBMS, Web Services or a regular file. ...
static const std::string sm_tableVertexAttributeModelSufixName
Database Model Vertex Attribute Model Table Name.
virtual void removeEdgeProperty(int idx)
Remove a property associated to the edge element.
virtual int getSRID()
Used to get the SRID of the geometry elements associated with this graph.
It models a property definition.
static const int sm_graphCacheDefaultMaxSize
This definition is used to set the max graph cache size.
void setDescription(std::string desc)
Set the graph description.
double m_boxPercentSize
Attribute used to box percent size used in loader strategy.
std::string getType()
It returns the graph type (defined in Enums file)
virtual int getEdgePropertySize()
Used to verify the number of properties associated to edge elements.
This class is used to define a set of properties of a Vertex.
void setType(std::string graphType)
Set the graph type (defined in Enums file)
This class is used to define a set of properties of a Edge.
std::string getDescription()
It returns the the graph description.
This class is used to define a set of properties of a Vertex.
An Envelope defines a 2D rectangular region.
virtual void setSRID(int srid)
Used to set the SRID of the geometry elements associated with this graph.
Class used to define the graph metadata informations.
size_t m_maxCacheSize
Attribute used to set the max cache size.
virtual ~GraphMetadata()
Default destructor.
te::da::DataSource * getDataSource()
It returns the data source associated with this graph.