COPASI API
4.16.103
Main Page
Namespaces
Classes
Files
File List
File Members
copasi
layout
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
20
#include "
copasi/report/CCopasiRootContainer.h
"
21
#include "
copasi/report/CKeyFactory.h
"
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
*/
31
CLGlobalStyle::CLGlobalStyle
(
const
CLGlobalStyle
& source,
CCopasiContainer
* pParent):
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
}
CKeyFactory.h
CLGlobalStyle::toSBML
GlobalStyle * toSBML(unsigned int level, unsigned int version) const
Definition:
CLGlobalStyle.cpp:49
CLGlobalStyle::CLGlobalStyle
CLGlobalStyle(CCopasiContainer *pParent=NULL)
Definition:
CLGlobalStyle.cpp:23
CLStyle::mKey
std::string mKey
Definition:
CLStyle.h:41
CCopasiRootContainer.h
CLStyle::addSBMLAttributes
void addSBMLAttributes(Style *pStyle) const
Definition:
CLStyle.cpp:237
CKeyFactory::add
std::string add(const std::string &prefix, CCopasiObject *pObject)
Definition:
CKeyFactory.cpp:167
CLStyle
Definition:
CLStyle.h:27
CCopasiRootContainer::getKeyFactory
static CKeyFactory * getKeyFactory()
Definition:
CCopasiRootContainer.cpp:163
CCopasiContainer
Definition:
CCopasiContainer.h:37
CLGlobalStyle
Definition:
CLGlobalStyle.h:22
CLGlobalStyle.h
Generated on Thu Jul 2 2015 14:50:15 for COPASI API by
1.8.6