diff options
author | Mike Buland <eichlan@xagasoft.com> | 2007-06-06 21:18:15 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2007-06-06 21:18:15 +0000 |
commit | 3c846af2fa8e4693c190c5131ec87d967eb58b3e (patch) | |
tree | 46ce9a7ae6f83d1dccd79a751a5340cca2eb05bc /src/entities/bu-class | |
parent | 3144bd7deb950de0cb80e2215c1545bdf8fc81e9 (diff) | |
download | libbu++-3c846af2fa8e4693c190c5131ec87d967eb58b3e.tar.gz libbu++-3c846af2fa8e4693c190c5131ec87d967eb58b3e.tar.bz2 libbu++-3c846af2fa8e4693c190c5131ec87d967eb58b3e.tar.xz libbu++-3c846af2fa8e4693c190c5131ec87d967eb58b3e.zip |
The TafReader is more general and much nicer, and about to actually construct
nodes, that part will be exciting. I also fixed some stuff and added some new
functions to List, it now has first() and last() which work just like std::list
front() and back(), I may add compatibility functions later...
Diffstat (limited to '')
-rw-r--r-- | src/entities/bu-class | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/entities/bu-class b/src/entities/bu-class new file mode 100644 index 0000000..81e3d25 --- /dev/null +++ b/src/entities/bu-class | |||
@@ -0,0 +1,46 @@ | |||
1 | <?xml version="1.1" ?> | ||
2 | <entity desc="Basic cpp class, with optional parent class. (.cpp+.h)"> | ||
3 | <param name="name" required="yes" desc="Name of the class"/> | ||
4 | <param name="parent" required="no" desc="Name of the parent class"/> | ||
5 | <file | ||
6 | name="header" | ||
7 | filename="{=name:%tolower}.h" | ||
8 | >#ifndef {=name:%uccsplit:%toupper}_H | ||
9 | #define {=name:%uccsplit:%toupper}_H | ||
10 | |||
11 | #include <stdint.h> | ||
12 | |||
13 | {?parent:"#include \"{=parent:%tolower}.h\" | ||
14 | |||
15 | "}namespace Bu | ||
16 | { | ||
17 | /** | ||
18 | * | ||
19 | */ | ||
20 | class {=name}{?parent:" : public {=parent}"} | ||
21 | { | ||
22 | public: | ||
23 | {=name}(); | ||
24 | virtual ~{=name}(); | ||
25 | |||
26 | private: | ||
27 | |||
28 | }; | ||
29 | } | ||
30 | |||
31 | #endif | ||
32 | </file> | ||
33 | <file | ||
34 | name="source" | ||
35 | filename="{=name:%tolower}.cpp" | ||
36 | >#include "bu/{=name:%tolower}.h" | ||
37 | |||
38 | Bu::{=name}::{=name}() | ||
39 | { | ||
40 | } | ||
41 | |||
42 | Bu::{=name}::~{=name}() | ||
43 | { | ||
44 | } | ||
45 | </file> | ||
46 | </entity> | ||