summaryrefslogtreecommitdiff
path: root/src/SpecialPhrase.h
blob: 02f27ca7e26822cdeb5b29f93451477872862cdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef __PY_SPECIAL_PHRASE_H_
#define __PY_SPECIAL_PHRASE_H_

#include <string>
#include <boost/shared_ptr.hpp>
#include <glib.h>

namespace PY {

class SpecialPhrase {
public:
    SpecialPhrase (guint pos) : m_position (pos) { }
    virtual ~SpecialPhrase (void);

    guint position (void) const {
        return m_position;
    }

    virtual std::string text (void) = 0;

private:
    guint m_position;
};

typedef boost::shared_ptr<SpecialPhrase> SpecialPhrasePtr;

};

#endif