COPASI API  4.16.103
CRDFSubject.h
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/MIRIAM/CRDFSubject.h,v $
3 // $Revision: 1.7 $
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_CRDFSubject
19 #define COPASI_CRDFSubject
20 
21 #include <string>
22 
24  {
25  // Enumerations
26  public:
27  /**
28  * The two different types possible for subjects
29  */
31 
32  // Operations
33  public:
34  /**
35  * Default Constructor
36  */
37  CRDFSubject();
38 
39  /**
40  * Copy Constructor
41  * @param const CRDFSubject & src
42  */
43  CRDFSubject(const CRDFSubject & src);
44 
45  /**
46  * Destructor
47  */
48  ~CRDFSubject();
49 
50  CRDFSubject& operator =(const CRDFSubject& rhs);
51 
52  private:
53  bool operator ==(const CRDFSubject& rhs) const;
54 
55  public:
56  /**
57  * Set the type of the subject
58  * @param const eSubjectType & type
59  */
60  void setType(const eSubjectType & type);
61 
62  /**
63  * Retrieve the type of the subject
64  * @return const eSubjectType & type
65  */
66  const eSubjectType & getType() const;
67 
68  /**
69  * Set the resource of the subject
70  * @param const std::string & resource
71  * @param const bool & isLocal
72  */
73  void setResource(const std::string & resource, const bool & isLocal);
74 
75  /**
76  * Retrieve the resource of the subject
77  * @return const std::string & resource
78  */
79  const std::string & getResource() const;
80 
81  /**
82  * Check whehter the resource is local
83  * @return const bool & isLocal
84  */
85  const bool & isLocal() const;
86 
87  /**
88  * Set the ID of the blank node of the subject
89  * @param const std::string & blankNodeId
90  */
91  void setBlankNodeId(const std::string & blankNodeId);
92 
93  /**
94  * Retrieve the ID of the blank node of the subject
95  * @return const std::string & blankNodeId
96  */
97  const std::string & getBlankNodeID() const;
98 
99  /**
100  * Reset all Data
101  */
102  void clearData();
103 
104  // Attributes
105  private:
106  /**
107  * The type of the subject
108  */
110 
111  /**
112  * The URI of the resource of type RESOURCE
113  */
114  std::string mResource;
115 
116  /**
117  * Stores whether the reources is resolve locally or remotely.
118  */
120 
121  /**
122  * The Id of the blank node for type BLANK_NODE
123  */
124  std::string mBlankNodeId;
125  };
126 
127 std::ostream & operator << (std::ostream & os, const CRDFSubject & subject);
128 
129 #endif // COPASI_CRDFSubject
std::string mBlankNodeId
Definition: CRDFSubject.h:124
const std::string & getResource() const
Definition: CRDFSubject.cpp:82
const std::string & getBlankNodeID() const
Definition: CRDFSubject.cpp:91
bool operator==(const CRDFSubject &rhs) const
Definition: CRDFSubject.cpp:51
void setBlankNodeId(const std::string &blankNodeId)
Definition: CRDFSubject.cpp:88
void setResource(const std::string &resource, const bool &isLocal)
Definition: CRDFSubject.cpp:76
std::ostream & operator<<(std::ostream &os, const CRDFSubject &subject)
CRDFSubject & operator=(const CRDFSubject &rhs)
Definition: CRDFSubject.cpp:39
eSubjectType mType
Definition: CRDFSubject.h:109
bool mIsLocalResource
Definition: CRDFSubject.h:119
std::string mResource
Definition: CRDFSubject.h:114
const bool & isLocal() const
Definition: CRDFSubject.cpp:85
void setType(const eSubjectType &type)
Definition: CRDFSubject.cpp:70
const eSubjectType & getType() const
Definition: CRDFSubject.cpp:73
void clearData()
Definition: CRDFSubject.cpp:94