Changeset 10054 in orxonox.OLD for branches/mount_points/src
- Timestamp:
- Dec 13, 2006, 12:41:36 AM (18 years ago)
- Location:
- branches/mount_points/src/lib/graphics/importer/oif
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/mount_points/src/lib/graphics/importer/oif/object_information_file.cc
r10053 r10054 31 31 32 32 /** 33 * 34 * @ todo this constructor is not jet implemented - do it35 */33 * constructor 34 * @param fileName name of the file 35 */ 36 36 ObjectInformationFile::ObjectInformationFile(const std::string& fileName) 37 : data(new OIFData()) 37 38 { 38 39 // load the oif file 39 40 this->data = ResourceOIF(fileName).data; 40 41 42 this->init(); 43 } 44 45 46 /** 47 * copy constructor 48 * @param oif instance to copy from 49 */ 50 ObjectInformationFile::ObjectInformationFile(const ObjectInformationFile& oif) 51 :data(oif.data) 52 { 53 this->init(); 41 54 } 42 55 … … 58 71 // delete what has to be deleted here 59 72 } 73 74 75 76 ObjectInformationFile& ObjectInformationFile::operator=(const ObjectInformationFile& oif) 77 { 78 this->data = oif.data; 79 return *this; 80 } 81 82 83 -
branches/mount_points/src/lib/graphics/importer/oif/object_information_file.h
r10053 r10054 19 19 20 20 public: 21 OIFData() ;22 virtual ~OIFData() ;21 OIFData() {} 22 virtual ~OIFData() {} 23 23 24 24 … … 34 34 public: 35 35 ObjectInformationFile(); 36 ObjectInformationFile(const ObjectInformationFile& oif); 36 37 ObjectInformationFile(const std::string& fileName); 37 38 virtual ~ObjectInformationFile(); 39 40 ObjectInformationFile& operator=(const ObjectInformationFile& oif); 38 41 39 42 private:
Note: See TracChangeset
for help on using the changeset viewer.