COPASI API  4.16.103
CLGlobalStyle.cpp
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/layout/CLGlobalStyle.cpp,v $
3 // $Revision: 1.4 $
4 // $Name: $
5 // $Author: shoops $
6 // $Date: 2012/04/23 15:44:52 $
7 // End CVS Header
8 
9 // Copyright (C) 2012 - 2010 by Pedro Mendes, Virginia Tech Intellectual
10 // Properties, Inc., University of Heidelberg, and The University
11 // of Manchester.
12 // All rights reserved.
13 
14 #include <assert.h>
15 
16 #include <sbml/packages/render/sbml/GlobalStyle.h>
17 
18 #include "CLGlobalStyle.h"
19 
22 
23 CLGlobalStyle::CLGlobalStyle(CCopasiContainer* pParent): CLStyle("GlobalStyle", pParent)
24 {
25  this->mKey = CCopasiRootContainer::getKeyFactory()->add("GlobalStyle", this);
26 }
27 
28 /**
29  * Copy Constructor.
30  */
32  CLStyle(source, pParent)
33 {
34  this->mKey = CCopasiRootContainer::getKeyFactory()->add("GlobalStyle", this);
35 }
36 
37 /**
38  * Constructor to generate object from the corresponding SBML object.
39  */
40 CLGlobalStyle::CLGlobalStyle(const GlobalStyle& source, CCopasiContainer* pParent):
41  CLStyle(source, "GlobalStyle", pParent)
42 {
43  this->mKey = CCopasiRootContainer::getKeyFactory()->add("GlobalStyle", this);
44 }
45 
46 /**
47  * Converts this object to the corresponding SBML object.
48  */
49 GlobalStyle* CLGlobalStyle::toSBML(unsigned int level, unsigned int version) const
50 {
51  GlobalStyle* pGS = new GlobalStyle(level, version);
52  this->addSBMLAttributes(pGS);
53  return pGS;
54 }
GlobalStyle * toSBML(unsigned int level, unsigned int version) const
CLGlobalStyle(CCopasiContainer *pParent=NULL)
std::string mKey
Definition: CLStyle.h:41
void addSBMLAttributes(Style *pStyle) const
Definition: CLStyle.cpp:237
std::string add(const std::string &prefix, CCopasiObject *pObject)
static CKeyFactory * getKeyFactory()