Concordia
example.hpp
1 #ifndef EXAMPLE_HDR
2 #define EXAMPLE_HDR
3 
4 #include "concordia/common/config.hpp"
5 #include "concordia/concordia_exception.hpp"
6 #include <string>
7 
14 class Example {
15 public:
21  explicit Example(const std::string & sentence,
22  const SUFFIX_MARKER_TYPE & id)
23  throw(ConcordiaException);
24 
27  virtual ~Example();
28 
32  std::string getSentence() const {
33  return _sentence;
34  }
35 
39  SUFFIX_MARKER_TYPE getId() const {
40  return _id;
41  }
42 
43 private:
44  std::string _sentence;
45 
46  SUFFIX_MARKER_TYPE _id;
47 };
48 
49 #endif
std::string getSentence() const
Definition: example.hpp:32
Definition: concordia_exception.hpp:11
Example(const std::string &sentence, const SUFFIX_MARKER_TYPE &id)
Definition: example.cpp:4
virtual ~Example()
Definition: example.cpp:15
SUFFIX_MARKER_TYPE getId() const
Definition: example.hpp:39
Definition: example.hpp:14