Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10054 in orxonox.OLD for branches/mount_points/src


Ignore:
Timestamp:
Dec 13, 2006, 12:41:36 AM (18 years ago)
Author:
patrick
Message:

further implementation of the oif modules, resource schlacht

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  
    3131
    3232/**
    33  *  constructor
    34  * @todo this constructor is not jet implemented - do it
    35 */
     33 * constructor
     34 * @param fileName name of the file
     35 */
    3636ObjectInformationFile::ObjectInformationFile(const std::string& fileName)
     37  : data(new OIFData())
    3738{
    3839  // load the oif file
    3940  this->data = ResourceOIF(fileName).data;
    4041
     42  this->init();
     43}
     44
     45
     46/**
     47 * copy constructor
     48 * @param oif instance to copy from
     49*/
     50ObjectInformationFile::ObjectInformationFile(const ObjectInformationFile& oif)
     51  :data(oif.data)
     52{
     53  this->init();
    4154}
    4255
     
    5871  // delete what has to be deleted here
    5972}
     73
     74
     75
     76ObjectInformationFile& 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  
    1919
    2020public:
    21   OIFData();
    22   virtual ~OIFData();
     21  OIFData() {}
     22  virtual ~OIFData() {}
    2323
    2424
     
    3434public:
    3535  ObjectInformationFile();
     36  ObjectInformationFile(const ObjectInformationFile& oif);
    3637  ObjectInformationFile(const std::string& fileName);
    3738  virtual ~ObjectInformationFile();
     39
     40  ObjectInformationFile& operator=(const ObjectInformationFile& oif);
    3841
    3942  private:
Note: See TracChangeset for help on using the changeset viewer.