OpenMW
components/compiler/literals.hpp
Go to the documentation of this file.
00001 #ifndef COMPILER_LITERALS_H_INCLUDED
00002 #define COMPILER_LITERALS_H_INCLUDED
00003 
00004 #include <string>
00005 #include <vector>
00006 
00007 #include <components/interpreter/types.hpp>
00008 
00009 namespace Compiler
00010 {
00012     
00013     class Literals
00014     {
00015             std::vector<Interpreter::Type_Integer> mIntegers;
00016             std::vector<Interpreter::Type_Float> mFloats;
00017             std::vector<std::string> mStrings;
00018     
00019         public:
00020         
00021             int getIntegerSize() const;
00023 
00024             int getFloatSize() const;
00026         
00027             int getStringSize() const;
00029         
00030             void append (std::vector<Interpreter::Type_Code>& code) const;
00033         
00034             int addInteger (Interpreter::Type_Integer value);
00036             
00037             int addFloat (Interpreter::Type_Float value);
00039             
00040             int addString (const std::string& value);
00042         
00043             void clear();
00045     };
00046 }
00047 
00048 #endif
00049