Wolframe, 0.0.3

doctypeinfo.hpp
Go to the documentation of this file.
1 /************************************************************************
2 Copyright (C) 2011 - 2014 Project Wolframe.
3 All rights reserved.
4 
5 This file is part of Project Wolframe.
6 
7 Commercial Usage
8 Licensees holding valid Project Wolframe Commercial licenses may
9 use this file in accordance with the Project Wolframe
10 Commercial License Agreement provided with the Software or,
11 alternatively, in accordance with the terms contained
12 in a written agreement between the licensee and Project Wolframe.
13 
14 GNU General Public License Usage
15 Alternatively, you can redistribute this file and/or modify it
16 under the terms of the GNU General Public License as published by
17 the Free Software Foundation, either version 3 of the License, or
18 (at your option) any later version.
19 
20 Wolframe is distributed in the hope that it will be useful,
21 but WITHOUT ANY WARRANTY; without even the implied warranty of
22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 GNU General Public License for more details.
24 
25 You should have received a copy of the GNU General Public License
26 along with Wolframe. If not, see <http://www.gnu.org/licenses/>.
27 
28 If you have questions regarding the use of this file, please contact
29 Project Wolframe.
30 
31 ************************************************************************/
34 
35 #ifndef _Wolframe_TYPES_DOCTYPE_INFO_HPP_INCLUDED
36 #define _Wolframe_TYPES_DOCTYPE_INFO_HPP_INCLUDED
37 #include <string>
38 #include <boost/shared_ptr.hpp>
39 
40 namespace _Wolframe {
41 namespace types {
42 
46 {
47 public:
52  DoctypeInfo( const std::string& docformat_, const std::string& doctype_)
53  :m_docformat(docformat_),m_doctype(doctype_){}
56 
58  const std::string& docformat() const
59  {
60  return m_docformat;
61  }
62 
64  const std::string& doctype() const
65  {
66  return m_doctype;
67  }
68 
69 private:
70  std::string m_docformat;
71  std::string m_doctype;
72 };
73 
74 typedef boost::shared_ptr<DoctypeInfo> DoctypeInfoR;
75 
76 }}//namespace
77 #endif
78 
79 
std::string m_doctype
type of the document (doctype identifier)
Definition: doctypeinfo.hpp:71
boost::shared_ptr< DoctypeInfo > DoctypeInfoR
Definition: doctypeinfo.hpp:74
DoctypeInfo(const std::string &docformat_, const std::string &doctype_)
Constructor.
Definition: doctypeinfo.hpp:52
std::string m_docformat
format of the document (e.g. 'XML','JSON','CSV',etc...)
Definition: doctypeinfo.hpp:70
Document type information representation created by a document type recognizer.
Definition: doctypeinfo.hpp:45
DoctypeInfo()
Default constructor.
Definition: doctypeinfo.hpp:55
const std::string & doctype() const
Get the document type.
Definition: doctypeinfo.hpp:64
DoctypeInfo(const DoctypeInfo &o)
Copy constructor.
Definition: doctypeinfo.hpp:49
const std::string & docformat() const
Get the document format.
Definition: doctypeinfo.hpp:58