diff options
Diffstat (limited to '')
| -rw-r--r-- | src/astleaf.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/astleaf.h b/src/astleaf.h index cdcb2ae..85293f1 100644 --- a/src/astleaf.h +++ b/src/astleaf.h | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | #define AST_LEAF_H | 2 | #define AST_LEAF_H |
| 3 | 3 | ||
| 4 | #include "astnode.h" | 4 | #include "astnode.h" |
| 5 | #include "bu/fstring.h" | 5 | #include "bu/string.h" |
| 6 | #include "bu/formatter.h" | 6 | #include "bu/formatter.h" |
| 7 | 7 | ||
| 8 | class AstLeaf : public AstNode | 8 | class AstLeaf : public AstNode |
| @@ -12,19 +12,19 @@ public: | |||
| 12 | AstLeaf( const Location &loc, Type eType, int iNew ); | 12 | AstLeaf( const Location &loc, Type eType, int iNew ); |
| 13 | AstLeaf( const Location &loc, Type eType, float fNew ); | 13 | AstLeaf( const Location &loc, Type eType, float fNew ); |
| 14 | AstLeaf( const Location &loc, Type eType, bool bNew ); | 14 | AstLeaf( const Location &loc, Type eType, bool bNew ); |
| 15 | AstLeaf( const Location &loc, Type eType, const Bu::FString &sNew ); | 15 | AstLeaf( const Location &loc, Type eType, const Bu::String &sNew ); |
| 16 | AstLeaf( const Location &loc, Type eType, const char *sNew ); | 16 | AstLeaf( const Location &loc, Type eType, const char *sNew ); |
| 17 | virtual ~AstLeaf(); | 17 | virtual ~AstLeaf(); |
| 18 | 18 | ||
| 19 | void setIntValue( int iNew ); | 19 | void setIntValue( int iNew ); |
| 20 | void setFloatValue( float fNew ); | 20 | void setFloatValue( float fNew ); |
| 21 | void setBoolValue( bool bNew ); | 21 | void setBoolValue( bool bNew ); |
| 22 | void setStrValue( const Bu::FString &sNew ); | 22 | void setStrValue( const Bu::String &sNew ); |
| 23 | 23 | ||
| 24 | int getIntValue() const; | 24 | int getIntValue() const; |
| 25 | float getFloatValue() const; | 25 | float getFloatValue() const; |
| 26 | bool getBoolValue() const; | 26 | bool getBoolValue() const; |
| 27 | Bu::FString &getStrValue() const; | 27 | Bu::String &getStrValue() const; |
| 28 | 28 | ||
| 29 | private: | 29 | private: |
| 30 | union | 30 | union |
| @@ -32,7 +32,7 @@ private: | |||
| 32 | int iVal; | 32 | int iVal; |
| 33 | float fVal; | 33 | float fVal; |
| 34 | bool bVal; | 34 | bool bVal; |
| 35 | Bu::FString *sVal; | 35 | Bu::String *sVal; |
| 36 | }; | 36 | }; |
| 37 | }; | 37 | }; |
| 38 | 38 | ||
