All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
InlineContent.cpp
Go to the documentation of this file.
1 /* Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
2 
3  This file is part of the TerraLib - a Framework for building GIS enabled applications.
4 
5  TerraLib is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License,
8  or (at your option) any later version.
9 
10  TerraLib is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with TerraLib. See COPYING. If not, write to
17  TerraLib Team at <terralib-team@terralib.org>.
18  */
19 
20 /*!
21  \file terralib/se/InlineContent.cpp
22 
23  \brief InlineContent is XML or base64 encoded content in some externally-defined format that is included in an SE in-line.
24 */
25 
26 // TerraLib
27 #include "InlineContent.h"
28 
30  : m_encoding(e)
31 {
32 }
33 
35 {
36 }
37 
38 void te::se::InlineContent::setData(const std::string& d)
39 {
40  m_data = d;
41 }
42 
43 const std::string& te::se::InlineContent::getData() const
44 {
45  return m_data;
46 }
47 
49 {
50  m_encoding = e;
51 }
52 
54 {
55  return m_encoding;
56 }
57 
59 {
60  InlineContent* ic = new InlineContent(m_encoding);
61  ic->setData(m_data);
62 
63  return ic;
64 }
65 
~InlineContent()
Destructor.
void setData(const std::string &d)
const std::string & getData() const
InlineContent is XML- or base64-encoded encoded content in some externally-defined format that is inc...
Definition: InlineContent.h:51
InlineContent * clone() const
It creates a new copy of this object.
InlineContent is XML or base64 encoded content in some externally-defined format that is included in ...
EncodingType getEncoding() const
InlineContent(const EncodingType &e)
It initializes a new InlineContent.
void setEncoding(EncodingType e)
EncodingType
The format type of encoded data.
Definition: InlineContent.h:60