copasi API  0.1
Public Types | Public Member Functions
CRDFObject Class Reference

#include <CRDFObject.h>

List of all members.

Public Types

enum  eObjectType { RESOURCE = 0, BLANK_NODE, LITERAL }

Public Member Functions

 CRDFObject ()
 CRDFObject (const CRDFObject &src)
CRDFObjectoperator= (const CRDFObject &rhs)
virtual ~CRDFObject ()
void setType (const eObjectType &type)
const eObjectTypegetType () const
void setResource (const std::string &resource, const bool &isLocal)
const std::string & getResource () const
const bool & isLocal () const
void setBlankNodeId (const std::string &blankNodeId)
const std::string & getBlankNodeID () const
void setLiteral (const CRDFLiteral &literal)
CRDFLiteralgetLiteral ()
const CRDFLiteralgetLiteral () const
void clearData ()

Member Enumeration Documentation

The three different types possible for objects

Enumerator:
RESOURCE 
BLANK_NODE 
LITERAL 

Constructor & Destructor Documentation

CRDFObject::CRDFObject ( )

Default Constructor

CRDFObject::CRDFObject ( const CRDFObject src)

Copy Constructor

Parameters:
constCRDFObject & src
CRDFObject::~CRDFObject ( ) [virtual]

Destructor


Member Function Documentation

void CRDFObject::clearData ( )

Reset all Data

const std::string & CRDFObject::getBlankNodeID ( ) const

Retrieve the ID of the blank node of the object

Returns:
const std::string & blankNodeId
CRDFLiteral & CRDFObject::getLiteral ( )

Retrieve the literal of the object

Returns:
CRDFLiteral & literal
const CRDFLiteral & CRDFObject::getLiteral ( ) const

Retrieve the literal of the object

Returns:
const CRDFLiteral & literal
const std::string & CRDFObject::getResource ( ) const

Retrieve the resource of the object

Returns:
const std::string & resource
const CRDFObject::eObjectType & CRDFObject::getType ( ) const

Retrieve the type of the object

Returns:
const eObjectType & type
const bool & CRDFObject::isLocal ( ) const

Check whehter the resource is local

Returns:
const bool & isLocal
CRDFObject & CRDFObject::operator= ( const CRDFObject rhs)
void CRDFObject::setBlankNodeId ( const std::string &  blankNodeId)

Set the ID of the blank node of the object

Parameters:
conststd::string & blankNodeId
void CRDFObject::setLiteral ( const CRDFLiteral literal)

Set the literal of the object

Parameters:
conststd::string & lexicalData
void CRDFObject::setResource ( const std::string &  resource,
const bool &  isLocal 
)

Set the resource of the object

Parameters:
conststd::string & resource
constbool & isLocal
void CRDFObject::setType ( const eObjectType type)

Set the type of the object

Parameters:
consteObjectType & type

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