]> git.llucax.com Git - software/bife/bife++.git/blob - string.h
First parser implementation that creates the widgets tree.
[software/bife/bife++.git] / string.h
1 // vim: set expandtab tabstop=4 shiftwidth=4:
2
3 #ifndef BIFE_STRING_H
4 #define BIFE_STRING_H
5
6 #include "hit.h"
7 #include "hash.h"
8 #include "widget.h"
9 #include <string>
10
11 namespace bife {
12
13     using std::string;
14
15     /**
16      * Base String Class.
17      *
18      * @todo 
19      */
20     class String: public Widget, public string {
21         // Methods.
22         public:
23             /**
24              * Constructor.
25              */
26             //String(void);
27
28             /**
29              * Constructor.
30              *
31              * @param str String.
32              */
33             String(const string&);
34
35             /**
36              * Constructor.
37              *
38              * @param str String.
39              */
40             String(const char*);
41
42             /**
43              * Destructor.
44              */
45             virtual ~String(void);
46
47             /**
48              * Renders the String using a HIT template.
49              *
50              * @param  hit HIT template to use to render de String.
51              * @return Rendered String.
52              */
53             virtual string render(HIT&);
54     };
55
56 }
57
58 #endif