2014-02-20 10:49:17 +01:00
|
|
|
#ifndef EXAMPLE_HDR
|
|
|
|
#define EXAMPLE_HDR
|
|
|
|
|
|
|
|
#include "concordia/common/config.hpp"
|
2014-03-14 11:30:17 +01:00
|
|
|
#include "concordia/concordia_exception.hpp"
|
2014-02-20 10:49:17 +01:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
/*!
|
|
|
|
Class representing a single sentence to be added into index along with its id.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
class Example {
|
|
|
|
public:
|
2014-03-14 11:30:17 +01:00
|
|
|
explicit Example(const string & sentence, const SUFFIX_MARKER_TYPE & id) throw (ConcordiaException);
|
2014-02-20 10:49:17 +01:00
|
|
|
|
|
|
|
/*! Destructor.
|
|
|
|
*/
|
|
|
|
virtual ~Example();
|
|
|
|
|
|
|
|
string getSentence() const {
|
|
|
|
return _sentence;
|
|
|
|
}
|
|
|
|
|
|
|
|
SUFFIX_MARKER_TYPE getId() const {
|
|
|
|
return _id;
|
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
|
|
|
string _sentence;
|
|
|
|
|
|
|
|
SUFFIX_MARKER_TYPE _id;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|