COPASI API  4.16.103
Functions
CRDFObject.cpp File Reference
#include "copasi.h"
#include "CRDFObject.h"
#include "CRDFLiteral.h"
Include dependency graph for CRDFObject.cpp:

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const CRDFObject &object)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const CRDFObject object 
)

Definition at line 137 of file CRDFObject.cpp.

References CRDFObject::BLANK_NODE, CRDFObject::LITERAL, and CRDFObject::RESOURCE.

138 {
139  switch (object.getType())
140  {
142  os << object.getBlankNodeID();
143  break;
144 
146  os << object.getResource();
147  break;
148 
149  case CRDFObject::LITERAL:
150  os << object.getLiteral();
151  break;
152  }
153 
154  return os;
155 }