Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

Token.cc

Go to the documentation of this file.
00001 #include "Kodu/Parsing/Token.h"
00002 
00003 namespace Kodu {
00004         
00005     bool TokenBase::isKeywordToken() const {
00006         return (dynamic_cast<const KeywordToken*>(this) != NULL);
00007     }
00008 
00009     bool TokenBase::isNumericToken() const {
00010         return (dynamic_cast<const NumericToken*>(this) != NULL);
00011     } 
00012 
00013     bool TokenBase::isStringToken() const {
00014         return (dynamic_cast<const StringToken*>(this) != NULL);
00015     }
00016 
00017     const std::string& TokenBase::getKeywordData() const {
00018         return dynamic_cast<const KeywordToken*>(this)->getData();
00019     }
00020 
00021     const float& TokenBase::getNumericData() const{
00022         return dynamic_cast<const NumericToken*>(this)->getData();
00023     }
00024 
00025     const std::string& TokenBase::getStringData() const {
00026         return dynamic_cast<const StringToken*>(this)->getData();
00027     }
00028 }

Tekkotsu v5.1CVS
Generated Mon May 9 04:58:52 2016 by Doxygen 1.6.3