COPASI API  4.40.278
CRDFWriter Class Reference

#include <CRDFWriter.h>

Inheritance diagram for CRDFWriter:
[legend]

Public Member Functions

 CRDFWriter ()
 
char * write (const CRDFGraph *pGraph)
 
 ~CRDFWriter ()
 

Static Public Member Functions

static std::string xmlFromGraph (const CRDFGraph *pGraph)
 

Private Member Functions

void initNamespaces (const CRDFGraph *pGraph)
 
- Private Member Functions inherited from CRaptorInit
 CRaptorInit ()
 
 ~CRaptorInit ()
 

Private Attributes

CRDFGraphmpGraph
 
raptor_serializer * mpWriter
 

Additional Inherited Members

- Static Private Member Functions inherited from CRaptorInit
static bool isLocalURI (raptor_uri *pURI)
 

Constructor & Destructor Documentation

◆ CRDFWriter()

CRDFWriter::CRDFWriter ( )

Constructor

References mpWriter.

◆ ~CRDFWriter()

CRDFWriter::~CRDFWriter ( )

Destructor

References mpWriter.

Member Function Documentation

◆ initNamespaces()

void CRDFWriter::initNamespaces ( const CRDFGraph pGraph)
private

This adds the default name spaces to the writer

Parameters
constCRDFGraph * pGraph

References CRDFGraph::getNameSpaceMap(), mpWriter, and pRaptorFreeUri.

Referenced by write().

◆ write()

◆ xmlFromGraph()

std::string CRDFWriter::xmlFromGraph ( const CRDFGraph pGraph)
static

Convert an RDF graph to an XML string

Parameters
constCRDFGraph * pGraph
Returns
std::string

References free().

Referenced by CMIRIAMInfo::save(), and CRDFGraphConverter::SBML2Copasi().

Member Data Documentation

◆ mpGraph

CRDFGraph* CRDFWriter::mpGraph
private

A pointer to the created RDF graph

◆ mpWriter

raptor_serializer* CRDFWriter::mpWriter
private

Pointer to the underlying C serializer from the Raptor library

Referenced by CRDFWriter(), initNamespaces(), write(), and ~CRDFWriter().


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