COPASI API  4.16.103
CLLocalStyle.h
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/layout/CLLocalStyle.h,v $
3 // $Revision: 1.5 $
4 // $Name: $
5 // $Author: shoops $
6 // $Date: 2011/09/30 16:35:21 $
7 // End CVS Header
8 
9 // Copyright (C) 2011 - 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 #ifndef CLLocalStyle_H__
15 #define CLLocalStyle_H__
16 
17 #include <set>
18 #include <string>
19 
20 #include "copasi/layout/CLStyle.h"
21 
22 class LocalStyle;
23 
24 class CLLocalStyle : public CLStyle
25 {
26 protected:
27  std::set<std::string> mKeyList;
28 
29 public:
30  /**
31  * Constructor.
32  */
33  CLLocalStyle(CCopasiContainer* pParent = NULL);
34 
35  /**
36  * Copy Constructor.
37  */
38  CLLocalStyle(const CLLocalStyle& source, CCopasiContainer* pParent = NULL);
39 
40  /**
41  * Constructor to generate object from the corresponding SBML object.
42  */
43  CLLocalStyle(const LocalStyle& source, CCopasiContainer* pParent = NULL);
44 
45  /**
46  * Returns the number of keys in the key set.
47  */
48  size_t getNumKeys() const;
49 
50  /**
51  * Returns the key list.
52  */
53  const std::set<std::string>& getKeyList() const;
54 
55  /**
56  * Sets the key list.
57  */
58  void setKeyList(const std::set<std::string>& keyList);
59 
60  /**
61  * Checks if a certain key is in the set or not.
62  */
63  bool isKeyInSet(const std::string& key) const;
64 
65  /**
66  * Adds another key to the set.
67  */
68  void addKey(const std::string& key);
69 
70  /**
71  * Checks whether a given key is in the role list.
72  */
73  bool isInKeyList(const std::string& key) const;
74 
75  /**
76  * Removes an key from the set.
77  */
78  void removeKey(const std::string& key);
79 
80  /**
81  * Converts this object to the corresponding SBML object.
82  */
83  LocalStyle* toSBML(unsigned int level, unsigned int version) const;
84 };
85 
86 #endif /* CLLocalStyle_H__ */
void addKey(const std::string &key)
LocalStyle * toSBML(unsigned int level, unsigned int version) const
void removeKey(const std::string &key)
const std::set< std::string > & getKeyList() const
size_t getNumKeys() const
bool isKeyInSet(const std::string &key) const
std::set< std::string > mKeyList
Definition: CLLocalStyle.h:27
bool isInKeyList(const std::string &key) const
void setKeyList(const std::set< std::string > &keyList)
CLLocalStyle(CCopasiContainer *pParent=NULL)