From 51f9aa16cbdd78c0b31483df26d0f7e81376f974 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 23 Jan 2008 16:44:10 +0000 Subject: Added a new helper to the Stream classes, a write function that takes a single Bu::FString reference as a parameter. Unfortunately you need to remember to add "using Stream::write;" to each child class so they can take advantage of it. Strange, no? Also, cleaned up a bunch of header files, I'm trying to move towards headers only including other headers that they absolutely need, otherwise just creating forward decleration sections at the top of each. --- src/minimacro.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/minimacro.cpp') diff --git a/src/minimacro.cpp b/src/minimacro.cpp index 374b7de..2bd156c 100644 --- a/src/minimacro.cpp +++ b/src/minimacro.cpp @@ -132,3 +132,13 @@ void Bu::MiniMacro::addVar( hVars.insert( sName, sValue ); } +bool Bu::MiniMacro::hasVar( const Bu::FString &sName ) +{ + return hVars.has( sName ); +} + +const Bu::FString &Bu::MiniMacro::getvar( const Bu::FString &sName ) +{ + return hVars.get( sName ); +} + -- cgit v1.2.3