Changeset 162 for trunk/nv/lua/lua_state.hh
- Timestamp:
- 07/15/13 20:13:27 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nv/lua/lua_state.hh
r121 r162 11 11 #include <map> 12 12 #include <nv/common.hh> 13 #include <nv/flags.hh> 13 14 #include <string> 14 15 … … 52 53 double get_double( const std::string& element, double defval = 0.0 ); 53 54 bool get_boolean( const std::string& element, bool defval = false ); 54 public: 55 56 template< uint32 SIZE, typename T > 57 flags< SIZE, T > get_flags( const std::string& element ) 58 { 59 flags< SIZE, T > result; 60 get_raw_flags( element, result.data(), result.size() ); 61 return result; 62 } 63 64 template< uint32 SIZE, typename T > 65 void load_flags( const std::string& element, flags< SIZE, T >& flags ) 66 { 67 get_raw_flags( element, flags.data(), flags.size() ); 68 } 69 private: 70 void get_raw_flags( const std::string& element, uint8* data, uint32 count ); 71 55 72 state* L; 56 73 stack_guard m_guard;
Note: See TracChangeset
for help on using the changeset viewer.