TinkerCell Core 1.0
TinkerCell's Core library providing all basic functionalities
Static Public Member Functions
Tinkercell::Ontology Class Reference

A set of node and connection families. All functions are static. More...

#include <Ontology.h>

List of all members.

Static Public Member Functions

static NodeFamilynodeFamily (const QString &)
 get a family pointer given its name (not case-sensitive)
static ConnectionFamilyconnectionFamily (const QString &)
 get a family pointer given its name (not case-sensitive)
static bool insertNodeFamily (const QString &, NodeFamily *)
 add a new family to the ontology
static bool insertConnectionFamily (const QString &, ConnectionFamily *)
 add a new family to the ontology
static QList< NodeFamily * > allNodeFamilies ()
 get list of all node families
static QList< ConnectionFamily * > allConnectionFamilies ()
 get list of all connection families
static QStringList allNodeFamilyNames ()
 get list of all node family names
static QStringList allConnectionFamilyNames ()
 get list of all connection family names
static QStringList readNodes (const QString &rdfFile, const QString &format=QString("rdfxml"))
 read RDF file and insert node families
static QStringList readConnections (const QString &rdfFile, const QString &format=QString("rdfxml"))
 read RDF file and insert connection families
static void cleanup ()
 delete family instances

Detailed Description

A set of node and connection families. All functions are static.

Definition at line 40 of file Ontology.h.


Member Function Documentation

QList< ConnectionFamily * > Tinkercell::Ontology::allConnectionFamilies ( ) [static]

get list of all connection families

Parameters:
QList<ConnectionFamily*>

Definition at line 51 of file Ontology.cpp.

QStringList Tinkercell::Ontology::allConnectionFamilyNames ( ) [static]

get list of all connection family names

Parameters:
QStringList

Definition at line 67 of file Ontology.cpp.

QList< NodeFamily * > Tinkercell::Ontology::allNodeFamilies ( ) [static]

get list of all node families

Parameters:
QList<NodeFamily*>

Definition at line 43 of file Ontology.cpp.

QStringList Tinkercell::Ontology::allNodeFamilyNames ( ) [static]

get list of all node family names

Parameters:
QStringList

Definition at line 59 of file Ontology.cpp.

void Tinkercell::Ontology::cleanup ( ) [static]

delete family instances

Definition at line 413 of file Ontology.cpp.

ConnectionFamily * Tinkercell::Ontology::connectionFamily ( const QString &  s0) [static]

get a family pointer given its name (not case-sensitive)

Parameters:
QString&name of family
Returns:
ConnectionFamily* can be 0 if name does not exist

Definition at line 21 of file Ontology.cpp.

Here is the caller graph for this function:

bool Tinkercell::Ontology::insertConnectionFamily ( const QString &  s0,
ConnectionFamily ptr 
) [static]

add a new family to the ontology

Parameters:
QStringfamily name
ConnectionFamily*new family
Returns:
bool did the insertion succeed

Definition at line 36 of file Ontology.cpp.

bool Tinkercell::Ontology::insertNodeFamily ( const QString &  s0,
NodeFamily ptr 
) [static]

add a new family to the ontology

Parameters:
QStringfamily name
NodeFamily*new family
Returns:
bool did the insertion succeed

Definition at line 29 of file Ontology.cpp.

NodeFamily * Tinkercell::Ontology::nodeFamily ( const QString &  s0) [static]

get a family pointer given its name (not case-sensitive)

Parameters:
QString&name of family
Returns:
NodeFamily* can be 0 if name does not exist

Definition at line 13 of file Ontology.cpp.

Here is the caller graph for this function:

QStringList Tinkercell::Ontology::readConnections ( const QString &  rdfFile,
const QString &  format = QString("rdfxml") 
) [static]

read RDF file and insert connection families

Parameters:
QStringfile name
QStringformat, defaults to rdfxml
Returns:
QStringList new families

Definition at line 359 of file Ontology.cpp.

Here is the call graph for this function:

QStringList Tinkercell::Ontology::readNodes ( const QString &  rdfFile,
const QString &  format = QString("rdfxml") 
) [static]

read RDF file and insert node families

Parameters:
QStringfile name
QStringformat, defaults to rdfxml
Returns:
QStringList new families

Definition at line 322 of file Ontology.cpp.

Here is the call graph for this function:


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines