Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10239 in orxonox.OLD for branches/mount_points/src/lib


Ignore:
Timestamp:
Jan 16, 2007, 10:52:55 PM (18 years ago)
Author:
patrick
Message:

found a bug in the object information resources file. fixed

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

    r10228 r10239  
    2222#include "util/loading/factory.h"
    2323#include "util/loading/load_param_xml.h"
     24
     25
     26
     27/**
     28 * constructor
     29 */
     30OIFData::OIFData()
     31{}
    2432
    2533
     
    7078
    7179
    72 
    7380/**
    74  * standard constructor
     81 * constructor
     82 * @param fileName name of the file
    7583 */
    7684ObjectInformationFile::ObjectInformationFile()
     85  : data(new OIFData())
    7786{
    7887  this->init();
     
    105114
    106115/**
     116 * the definition of the assignment operator
     117 * @param oif
     118 * @return
     119 */
     120ObjectInformationFile& ObjectInformationFile::operator=(const ObjectInformationFile& oif)
     121{
     122  this->init();
     123  this->data = oif.data;
     124
     125  return *this;
     126}
     127
     128/**
    107129 * initizlizing function
    108130 */
     
    122144
    123145
    124 
    125 ObjectInformationFile& ObjectInformationFile::operator=(const ObjectInformationFile& oif)
    126 {
    127   this->data = oif.data;
    128   return *this;
    129 }
    130 
    131 
    132146/**
    133147 * this initializes the mount point
  • branches/mount_points/src/lib/graphics/importer/oif/object_information_file.h

    r10228 r10239  
    2020
    2121public:
     22  OIFData();
    2223  OIFData(const std::string& fileName);
    2324  virtual ~OIFData() {}
     
    4445  ObjectInformationFile& operator=(const ObjectInformationFile& oif);
    4546
    46 //   void initMountPoint(MountPoint* mountPoint);
     47  /** @returns a reference to the xml oif file */
     48  inline const TiXmlElement* getMountPointDescription() { return this->data->root(); }
     49
    4750
    4851  private:
Note: See TracChangeset for help on using the changeset viewer.