ChangeCase.h
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/ChangeCase.h
22 
23  \brief Changes the case of strings (String formatting functions).
24 */
25 
26 #ifndef __TERRALIB_SE_INTERNAL_CHANGECASE_H
27 #define __TERRALIB_SE_INTERNAL_CHANGECASE_H
28 
29 // TerraLib
30 #include "Function.h"
31 
32 namespace te
33 {
34  namespace se
35  {
36 // Forward declaration
37  class ParameterValue;
38 
39  /*!
40  \class ChangeCase
41 
42  \brief Changes the case of strings (String formatting functions).
43 
44  The function changes the case of the
45  StringValue as indicated by the attribute
46  direction. Possible values of the latter are
47  "toUpper" and "toLower", where the former is
48  the default value.
49 
50  \sa Function, ParameterValue
51  */
53  {
54  public:
55 
56  /*!
57  \enum CaseDirectionType
58 
59  \brief The type of case.
60  */
62  {
63  TOUPPER, /*!< It means to change case to upper case. */
64  TOLOWER /*!< It means to change case to lower case. */
65  };
66 
67  /** @name Initializer Methods
68  * Methods related to instantiation and destruction.
69  */
70  //@{
71 
72  /*! \brief It initializes a new ChangeCase. */
73  ChangeCase();
74 
75  /*! \brief Destructor. */
76  ~ChangeCase();
77 
78  //@}
79 
80  void setStringValue(ParameterValue* v);
81  void setDirection(CaseDirectionType cd);
82 
83  private:
84 
85  ParameterValue* m_stringValue; //!< Mandatory.
86  CaseDirectionType m_direction; //!< Mandatory.
87  };
88 
89  } // end namespace se
90 } // end namespace te
91 
92 #endif // __TERRALIB_SE_INTERNAL_CHANGECASE_H
Changes the case of strings (String formatting functions).
Definition: ChangeCase.h:52
Symbology Encoding functions.
Definition: Function.h:65
The "ParameterValueType" uses WFS-Filter expressions to give values for SE graphic parameters...
URI C++ Library.
#define TESEEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:187
CaseDirectionType m_direction
Mandatory.
Definition: ChangeCase.h:86
CaseDirectionType
The type of case.
Definition: ChangeCase.h:61
Symbology Encoding functions.
ParameterValue * m_stringValue
Mandatory.
Definition: ChangeCase.h:85