Changeset 5695 for code/trunk/src/core/XMLFile.h
- Timestamp:
- Aug 30, 2009, 2:22:00 AM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/resource2 (added) merged: 3373-3374,5594,5597,5610-5611,5614,5624,5641,5644-5646,5650-5664,5667-5672,5682-5684,5688-5691,5694
- Property svn:mergeinfo changed
-
code/trunk/src/core/XMLFile.h
r3196 r5695 40 40 { 41 41 public: 42 XMLFile(const std::string& filename) : filename_(filename) {} 43 XMLFile(const std::string& filename, const ClassTreeMask& mask) : filename_(filename), mask_(mask) {}; 42 XMLFile(const std::string& filename, const std::string& resourceGroup = "General") 43 : filename_(filename) 44 , group_(resourceGroup) 45 , bLuaSupport_(true) 46 { } 47 XMLFile(const ClassTreeMask& mask, const std::string& filename, const std::string& resourceGroup = "General") 48 : filename_(filename) 49 , group_(resourceGroup) 50 , mask_(mask) 51 , bLuaSupport_(true) 52 { } 53 54 void setLuaSupport(bool val) { bLuaSupport_ = val; } 44 55 45 56 const std::string& getFilename() const { return this->filename_; } 57 const std::string& getResourceGroup() const { return this->group_; } 46 58 const ClassTreeMask& getMask() const { return this->mask_; } 59 bool getLuaSupport() const { return this->bLuaSupport_; } 47 60 48 61 private: 49 62 std::string filename_; 63 std::string group_; 50 64 ClassTreeMask mask_; 65 bool bLuaSupport_; // Default is true 51 66 }; 52 67 }
Note: See TracChangeset
for help on using the changeset viewer.