COPASI API  4.16.103
Public Member Functions | Static Public Member Functions | Static Private Attributes | List of all members
CRaptorInit Class Reference

#include <CRaptorInit.h>

Inheritance diagram for CRaptorInit:
Inheritance graph
[legend]

Public Member Functions

 CRaptorInit ()
 
 ~CRaptorInit ()
 

Static Public Member Functions

static bool isLocalURI (raptor_uri *pURI)
 

Static Private Attributes

static bool Initialized = false
 

Detailed Description

Definition at line 17 of file CRaptorInit.h.

Constructor & Destructor Documentation

CRaptorInit::CRaptorInit ( )

Constructor

Definition at line 22 of file CRaptorInit.cpp.

References Initialized.

23 {
24  if (!Initialized)
25  {
26  raptor_init();
27  Initialized = true;
28  atexit(&raptor_finish);
29  }
30 }
static bool Initialized
Definition: CRaptorInit.h:44
CRaptorInit::~CRaptorInit ( )

Constructor

Definition at line 32 of file CRaptorInit.cpp.

33 {}

Member Function Documentation

bool CRaptorInit::isLocalURI ( raptor_uri *  pURI)
static

Checks whether the given URI is resolved locally;

Parameters
raptor_uri* pURI
Returns
bool isLocalURI

Definition at line 36 of file CRaptorInit.cpp.

References pRaptorFreeUri.

Referenced by CRDFParser::TripleHandler().

37 {
38  raptor_uri * pTmp =
39  raptor_new_uri_for_retrieval(pURI);
40 
41  bool isLocal =
42  (strcmp("/", (char *) raptor_uri_as_string(pTmp)) == 0);
43 
44  pRaptorFreeUri(pTmp);
45 
46  return isLocal;
47 }
#define pRaptorFreeUri(p)
Definition: CRaptorInit.h:47

Member Data Documentation

bool CRaptorInit::Initialized = false
staticprivate

This attribute indicates whether the raptor library is initialized

Definition at line 44 of file CRaptorInit.h.

Referenced by CRaptorInit().


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