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 void te::se::InlineContent::setData(const std::string& d)
37 {
38  m_data = d;
39 }
40 
41 const std::string& te::se::InlineContent::getData() const
42 {
43  return m_data;
44 }
45 
47 {
48  m_encoding = e;
49 }
50 
52 {
53  return m_encoding;
54 }
55 
57 {
59  ic->setData(m_data);
60 
61  return ic;
62 }
63 
~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
static te::dt::DateTime d(2010, 8, 9, 15, 58, 39)
EncodingType m_encoding
The possible values are: xml or base64. (Mandatory)
InlineContent(const EncodingType &e)
It initializes a new InlineContent.
void setEncoding(EncodingType e)
std::string m_data
The inlined data. (Optional)
EncodingType
The format type of encoded data.
Definition: InlineContent.h:60