summaryrefslogtreecommitdiff
path: root/src/minimacro.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/minimacro.h')
-rw-r--r--src/minimacro.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/minimacro.h b/src/minimacro.h
index 7aed912..45a8555 100644
--- a/src/minimacro.h
+++ b/src/minimacro.h
@@ -13,6 +13,7 @@
13 13
14namespace Bu 14namespace Bu
15{ 15{
16 typedef Bu::Hash<Bu::FString, Bu::FString> StrHash;
16 /** 17 /**
17 * A processor for Libbu++ brand Mini Macros. These are really simple, but 18 * A processor for Libbu++ brand Mini Macros. These are really simple, but
18 * still fairly flexible. It's mainly text replacement, but with a few 19 * still fairly flexible. It's mainly text replacement, but with a few
@@ -59,17 +60,18 @@ namespace Bu
59 {?name="bob":"You're named bob!":"Who are you? I only know bob..."} 60 {?name="bob":"You're named bob!":"Who are you? I only know bob..."}
60 @endverbatim 61 @endverbatim
61 */ 62 */
62 typedef Bu::Hash<Bu::FString, Bu::FString> StrHash;
63 class MiniMacro 63 class MiniMacro
64 { 64 {
65 public: 65 public:
66 MiniMacro(); 66 MiniMacro();
67 MiniMacro( const StrHash &sVarSrc );
67 virtual ~MiniMacro(); 68 virtual ~MiniMacro();
68 69
69 Bu::FString parse( const Bu::FString &sIn ); 70 Bu::FString parse( const Bu::FString &sIn );
70 void addVar( const Bu::FString &sName, const Bu::FString &sValue ); 71 void addVar( const Bu::FString &sName, const Bu::FString &sValue );
71 bool hasVar( const Bu::FString &sName ); 72 bool hasVar( const Bu::FString &sName );
72 const Bu::FString &getvar( const Bu::FString &sName ); 73 const Bu::FString &getVar( const Bu::FString &sName );
74 const StrHash &getVars();
73 int getPosition(); 75 int getPosition();
74 76
75 private: 77 private: