|
COPASI API
4.40.278
|
#include <CRDFSubject.h>
Public Types | |
| enum | eSubjectType { RESOURCE = 0 , BLANK_NODE } |
Public Member Functions | |
| void | clearData () |
| CRDFSubject () | |
| CRDFSubject (const CRDFSubject &src) | |
| const std::string & | getBlankNodeID () const |
| const std::string & | getResource () const |
| const eSubjectType & | getType () const |
| const bool & | isLocal () const |
| CRDFSubject & | operator= (const CRDFSubject &rhs) |
| void | setBlankNodeId (const std::string &blankNodeId) |
| void | setResource (const std::string &resource, const bool &isLocal) |
| void | setType (const eSubjectType &type) |
| ~CRDFSubject () | |
Private Member Functions | |
| bool | operator== (const CRDFSubject &rhs) const |
Private Attributes | |
| std::string | mBlankNodeId |
| bool | mIsLocalResource |
| std::string | mResource |
| eSubjectType | mType |
| CRDFSubject::CRDFSubject | ( | ) |
Default Constructor
| CRDFSubject::CRDFSubject | ( | const CRDFSubject & | src | ) |
Copy Constructor
| const | CRDFSubject & src |
| CRDFSubject::~CRDFSubject | ( | ) |
Destructor
| void CRDFSubject::clearData | ( | ) |
Reset all Data
References mBlankNodeId, mIsLocalResource, mResource, mType, and RESOURCE.
| const std::string & CRDFSubject::getBlankNodeID | ( | ) | const |
Retrieve the ID of the blank node of the subject
References mBlankNodeId.
Referenced by CRDFGraph::addTriplet(), operator<<(), CRDFNode::setSubject(), and CRDFWriter::write().
| const std::string & CRDFSubject::getResource | ( | ) | const |
Retrieve the resource of the subject
References mResource.
Referenced by CRDFGraph::addTriplet(), CRDFGraph::guessGraphRoot(), operator<<(), and CRDFWriter::write().
| const CRDFSubject::eSubjectType & CRDFSubject::getType | ( | ) | const |
Retrieve the type of the subject
References mType.
Referenced by CRDFGraph::addTriplet(), CRDFGraph::guessGraphRoot(), operator<<(), CRDFNode::setSubject(), and CRDFWriter::write().
| const bool & CRDFSubject::isLocal | ( | ) | const |
Check whehter the resource is local
References mIsLocalResource.
Referenced by CRDFGraph::addTriplet(), CRDFGraph::guessGraphRoot(), and setResource().
| CRDFSubject & CRDFSubject::operator= | ( | const CRDFSubject & | rhs | ) |
References mBlankNodeId, mIsLocalResource, mResource, and mType.
|
private |
References BLANK_NODE, mBlankNodeId, mIsLocalResource, mResource, mType, and RESOURCE.
| void CRDFSubject::setBlankNodeId | ( | const std::string & | blankNodeId | ) |
Set the ID of the blank node of the subject
| const | std::string & blankNodeId |
References mBlankNodeId.
Referenced by CRDFNode::setObject(), and CRDFParser::TripleHandler().
| void CRDFSubject::setResource | ( | const std::string & | resource, |
| const bool & | isLocal | ||
| ) |
Set the resource of the subject
| const | std::string & resource |
| const | bool & isLocal |
References isLocal(), mIsLocalResource, and mResource.
Referenced by CRDFGraph::createAboutNode(), and CRDFParser::TripleHandler().
| void CRDFSubject::setType | ( | const eSubjectType & | type | ) |
Set the type of the subject
| const | eSubjectType & type |
References mType.
Referenced by CRDFGraph::createAboutNode(), CRDFNode::setObject(), and CRDFParser::TripleHandler().
|
private |
The Id of the blank node for type BLANK_NODE
Referenced by clearData(), getBlankNodeID(), operator=(), operator==(), and setBlankNodeId().
|
private |
Stores whether the reources is resolve locally or remotely.
Referenced by clearData(), isLocal(), operator=(), operator==(), and setResource().
|
private |
The URI of the resource of type RESOURCE
Referenced by clearData(), getResource(), operator=(), operator==(), and setResource().
|
private |
The type of the subject
Referenced by clearData(), getType(), operator=(), operator==(), and setType().