libgexf  0.1.3
metadata.h
Go to the documentation of this file.
1 
7 /*
8 # Copyright (c) <2009> <Sebastien Heymann>
9 #
10 # Permission is hereby granted, free of charge, to any person obtaining a copy
11 # of this software and associated documentation files (the "Software"), to deal
12 # in the Software without restriction, including without limitation the rights
13 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14 # copies of the Software, and to permit persons to whom the Software is
15 # furnished to do so, subject to the following conditions:
16 #
17 # The above copyright notice and this permission notice shall be included in
18 # all copies or substantial portions of the Software.
19 #
20 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
26 # THE SOFTWARE.
27 */
28 
29 #ifndef _METADATA_H
30 #define _METADATA_H
31 
32 #include <string>
33 
34 namespace libgexf {
35 
39 class MetaData {
40 public:
41  MetaData();
42 
46  MetaData(const MetaData& orig);
47 
48  virtual ~MetaData();
49 
53  std::string getVersion() const;
54 
58  std::string getXmlns() const;
59 
63  std::string getXsi() const;
64 
68  std::string getSchema() const;
69 
73  std::string getVariant() const;
74 
78  std::string getCreator() const;
79 
83  std::string getDescription() const;
84 
88  std::string getKeywords() const;
89 
93  std::string getLastModifiedDate() const;
94 
95 
96 
100  void setVersion(const std::string& version);
101 
105  void setXmlns(const std::string& xmlns);
106 
110  void setXsi(const std::string& xsi);
111 
115  void setSchema(const std::string& schema);
116 
120  void setVariant(const std::string& variant);
121 
125  void setCreator(const std::string& creator);
126 
130  void setDescription(const std::string& description);
131 
135  void setKeywords(const std::string& keywords);
136 
140  void setLastModifiedDate(const std::string& lastmodifieddate);
141 private:
142  void init();
143 private:
144  std::string _version;
145  std::string _xmlns;
146  std::string _xsi;
147  std::string _schema;
148  std::string _variant;
149  std::string _creator;
150  std::string _description;
151  std::string _keywords;
152  std::string _lastmodifieddate;
153 private:
154  friend std::ostream& operator<<(std::ostream& os, const MetaData& o);
155 };
156 
157 }
158 
159 #endif /* _METADATA_H */
160 
void setCreator(const std::string &creator)
Set the creator.
Definition: metadata.cpp:151
std::string getLastModifiedDate() const
Get the last modified date.
Definition: metadata.cpp:115
void setDescription(const std::string &description)
Set the description.
Definition: metadata.cpp:157
void setLastModifiedDate(const std::string &lastmodifieddate)
Set the last modified date.
Definition: metadata.cpp:169
void setVersion(const std::string &version)
Set the GEXF version.
Definition: metadata.cpp:121
Definition: abstractiter.h:32
std::string getXsi() const
Get the XMLNS:XSI.
Definition: metadata.cpp:79
void setXmlns(const std::string &xmlns)
Set the XMLNS.
Definition: metadata.cpp:127
std::string getVersion() const
Get the GEXF version.
Definition: metadata.cpp:67
void setSchema(const std::string &schema)
Set the XML schema.
Definition: metadata.cpp:139
std::string getSchema() const
Get the XML schema.
Definition: metadata.cpp:85
void setVariant(const std::string &variant)
Set the variant.
Definition: metadata.cpp:145
void setXsi(const std::string &xsi)
Set the XMLNS:XSI.
Definition: metadata.cpp:133
std::string getVariant() const
Get the variant.
Definition: metadata.cpp:91
void setKeywords(const std::string &keywords)
Set the keywords.
Definition: metadata.cpp:163
std::string getCreator() const
Get the creator.
Definition: metadata.cpp:97
std::string getXmlns() const
Get the XMLNS.
Definition: metadata.cpp:73
Associated meta data and attributes on the graph.
Definition: metadata.h:39
std::string getKeywords() const
Get the keywords.
Definition: metadata.cpp:109
std::string getDescription() const
Get the description.
Definition: metadata.cpp:103