0.07.4
C++ Open Travel Request Parsing Library
StringSet.hpp
Go to the documentation of this file.
1
#ifndef __OPENTREP_BOM_STRINGSET_HPP
2
#define __OPENTREP_BOM_STRINGSET_HPP
3
4
// //////////////////////////////////////////////////////////////////////
5
// Import section
6
// //////////////////////////////////////////////////////////////////////
7
// STL
8
#include <string>
9
#include <list>
10
// OpenTrep
11
#include <
opentrep/OPENTREP_Types.hpp
>
12
#include <
opentrep/basic/StructAbstract.hpp
>
13
14
namespace
OPENTREP
{
15
19
struct
StringSet
:
public
StructAbstract
{
20
public
:
21
// //////////////// Type definitions //////////////////
25
typedef
std::list<std::string>
StringSet_T
;
26
27
public
:
34
void
push_back
(
const
std::string&);
35
39
void
push_back
(
const
StringSet
&);
40
44
size_t
size
()
const
;
45
49
bool
empty
()
const
;
50
54
void
clear
();
55
59
std::string
getFirstString
()
const
;
60
61
62
public
:
63
// /////////// Display support methods /////////
69
void
toStream
(std::ostream&)
const
;
70
76
void
fromStream
(std::istream&);
77
82
std::string
describeKey
()
const
;
83
87
std::string
describe
()
const
;
88
89
90
public
:
91
// //////////////// Constructors and Destructors /////////////
95
StringSet
();
96
100
StringSet
(
const
StringSet
&);
101
105
StringSet
(
const
std::string&);
106
110
~StringSet
();
111
112
113
public
:
114
// //////////////// Attributes ///////////////
118
StringSet_T
_set
;
119
};
120
121
}
122
#endif // __OPENTREP_BOM_STRINGSET_HPP
OPENTREP::StringSet::_set
StringSet_T _set
Definition:
StringSet.hpp:118
OPENTREP::StringSet
Class holding a set of strings, e.g., {"rio", "de", "janeiro"}.
Definition:
StringSet.hpp:19
OPENTREP::StringSet::describe
std::string describe() const
Definition:
StringSet.cpp:88
OPENTREP::StringSet::StringSet
StringSet()
Definition:
StringSet.cpp:14
OPENTREP::StringSet::getFirstString
std::string getFirstString() const
Definition:
StringSet.cpp:64
OPENTREP
Definition:
BasChronometer.cpp:10
OPENTREP::StringSet::empty
bool empty() const
Definition:
StringSet.cpp:39
OPENTREP::StringSet::push_back
void push_back(const std::string &)
Definition:
StringSet.cpp:49
OPENTREP::StringSet::fromStream
void fromStream(std::istream &)
Definition:
StringSet.cpp:122
OPENTREP::StructAbstract
Base class for the light structures.
Definition:
StructAbstract.hpp:16
OPENTREP::StringSet::describeKey
std::string describeKey() const
Definition:
StringSet.cpp:81
OPENTREP::StringSet::size
size_t size() const
Definition:
StringSet.cpp:34
OPENTREP::StringSet::StringSet_T
std::list< std::string > StringSet_T
Definition:
StringSet.hpp:25
OPENTREP::StringSet::clear
void clear()
Definition:
StringSet.cpp:44
StructAbstract.hpp
OPENTREP_Types.hpp
OPENTREP::StringSet::toStream
void toStream(std::ostream &) const
Definition:
StringSet.cpp:117
OPENTREP::StringSet::~StringSet
~StringSet()
Definition:
StringSet.cpp:30
Generated on Thu Dec 19 2019 00:00:00 for OpenTREP by
1.8.16