COPASI API  4.16.103
CRDFLiteral.h
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/MIRIAM/CRDFLiteral.h,v $
3 // $Revision: 1.3 $
4 // $Name: $
5 // $Author: shoops $
6 // $Date: 2008/06/10 20:31:11 $
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 // Copyright (C) 2001 - 2007 by Pedro Mendes, Virginia Tech Intellectual
15 // Properties, Inc. and EML Research, gGmbH.
16 // All rights reserved.
17 
18 #ifndef COPASI_CRDFLiteral
19 #define COPASI_CRDFLiteral
20 
21 #include <string>
22 
24  {
25  // Enumerations
26  public:
27  /**
28  * The two different types possible for literals
29  */
30  enum eLiteralType {PLAIN = 0, TYPED};
31 
32  // Operations
33  public:
34  /**
35  * Default Constructor
36  */
37  CRDFLiteral();
38 
39  /**
40  * Copy Constructor
41  * @param const CRDFLiteral & src
42  */
43  CRDFLiteral(const CRDFLiteral & src);
44 
45  /**
46  * Destructor
47  */
48  ~CRDFLiteral();
49 
50  /**
51  * Set the type of the literal
52  * @param const eLiteralType & type
53  */
54  void setType(const eLiteralType & type);
55 
56  /**
57  * Retrieve the type of the literal
58  * @return const eLiteralType & type
59  */
60  const eLiteralType & getType() const;
61 
62  /**
63  * Set the language of the literal
64  * @param const std::string & language
65  */
66  void setLanguage(const std::string & language);
67 
68  /**
69  * Retrieve the language of the literal
70  * @return const std::string & language
71  */
72  const std::string & getLanguage() const;
73 
74  /**
75  * Set the data type of the literal
76  * @param const std::string & dataType
77  */
78  void setDataType(const std::string & dataType);
79 
80  /**
81  * Retrieve the data type of the literal
82  * @return const std::string & dataType
83  */
84  const std::string & getDataType() const;
85 
86  /**
87  * Set the lexical data of the literal
88  * @param const std::string & lexicalData
89  */
90  void setLexicalData(const std::string & lexicalData);
91 
92  /**
93  * Retrieve the lexical data of the literal
94  * @return const std::string & lexicalData
95  */
96  const std::string & getLexicalData() const;
97 
98  // Attributes
99  private:
100  /**
101  * The type of the literal
102  */
104 
105  /**
106  * The language tag for literals of type PLAIN
107  */
108  std::string mLanguage;
109 
110  /**
111  * The data type describing URI for literals of type TYPED.
112  */
113  std::string mDataType;
114 
115  /**
116  * The lical form of the data
117  */
118  std::string mLexicalData;
119  };
120 
121 std::ostream & operator << (std::ostream & os, const CRDFLiteral & literal);
122 
123 #endif // COPASI_CRDFLiteral
void setLanguage(const std::string &language)
Definition: CRDFLiteral.cpp:45
const std::string & getDataType() const
Definition: CRDFLiteral.cpp:54
std::string mDataType
Definition: CRDFLiteral.h:113
std::string mLanguage
Definition: CRDFLiteral.h:108
std::ostream & operator<<(std::ostream &os, const CRDFLiteral &literal)
Definition: CRDFLiteral.cpp:63
void setDataType(const std::string &dataType)
Definition: CRDFLiteral.cpp:51
std::string mLexicalData
Definition: CRDFLiteral.h:118
const std::string & getLanguage() const
Definition: CRDFLiteral.cpp:48
void setType(const eLiteralType &type)
Definition: CRDFLiteral.cpp:39
const eLiteralType & getType() const
Definition: CRDFLiteral.cpp:42
eLiteralType mType
Definition: CRDFLiteral.h:103
void setLexicalData(const std::string &lexicalData)
Definition: CRDFLiteral.cpp:57
const std::string & getLexicalData() const
Definition: CRDFLiteral.cpp:60