COPASI API  4.16.103
CModified.cpp
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/MIRIAM/CModified.cpp,v $
3 // $Revision: 1.11 $
4 // $Name: $
5 // $Author: shoops $
6 // $Date: 2009/02/19 19:50:46 $
7 // End CVS Header
8 
9 // Copyright (C) 2008 by Pedro Mendes, Virginia Tech Intellectual
10 // Properties, Inc., EML Research, gGmbH, University of Heidelberg,
11 // and The University of Manchester.
12 // All rights reserved.
13 
14 #include "copasi.h"
15 
16 #include "CRDFGraph.h"
17 #include "CCreator.h"
18 #include "CRDFLiteral.h"
19 #include "CModelMIRIAMInfo.h"
20 
22 #include "model/CModel.h"
23 #include "report/CKeyFactory.h"
25 
26 CModification::CModification(const std::string & objectName,
27  const CCopasiContainer * pParent):
28  CCopasiContainer(objectName, pParent, "Modification"),
29  mTriplet(),
30  mNodePath(),
31  mKey(CCopasiRootContainer::getKeyFactory()->add("Modification", this))
32 {}
33 
35  const std::string & objectName,
36  const CCopasiContainer * pParent):
37  CCopasiContainer(objectName, pParent, "Modification"),
38  mTriplet(triplet),
39  mNodePath(),
40  mKey(CCopasiRootContainer::getKeyFactory()->add("Modification", this))
41 {
42  if (!mTriplet)
43  return;
44 
46 }
47 
49  const CCopasiContainer * pParent):
50  CCopasiContainer(src, pParent),
51  mTriplet(src.mTriplet),
52  mNodePath(src.mNodePath),
53  mKey(CCopasiRootContainer::getKeyFactory()->add("Modification", this))
54 {}
55 
57 {
59 }
60 
62  {return mTriplet;}
63 
64 const std::string & CModification::getKey() const
65  {return mKey;}
66 
67 void CModification::setDate(const std::string & date)
69 
70 const std::string & CModification::getDate() const
std::string mKey
Definition: CModified.h:48
bool remove(const std::string &key)
const CRDFTriplet & getTriplet() const
Definition: CModified.cpp:61
virtual const std::string & getKey() const
Definition: CModified.cpp:64
CRDFPredicate::Path mNodePath
Definition: CModified.h:43
bool setFieldValue(const CMIRIAMResourceObject &value, const CRDFPredicate::ePredicateType &predicate, const CRDFPredicate::Path &nodePath)
Definition: CRDFNode.cpp:142
CRDFPredicate::Path getPath() const
Definition: CRDFNode.cpp:110
const std::string & getDate() const
Definition: CModified.cpp:70
void setDate(const std::string &date)
Definition: CModified.cpp:67
static CKeyFactory * getKeyFactory()
const std::string & getFieldValue(const CRDFPredicate::ePredicateType &predicate) const
Definition: CRDFNode.cpp:113
CModification(const std::string &objectName, const CCopasiContainer *pParent=NULL)
Definition: CModified.cpp:26
CRDFTriplet mTriplet
Definition: CModified.h:38
CRDFNode * pObject
Definition: CRDFTriplet.h:42