Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/mount_points/src/lib/graphics/importer/oif/object_information_file.cc @ 10054

Last change on this file since 10054 was 10054, checked in by patrick, 17 years ago

further implementation of the oif modules, resource schlacht

File size: 1.4 KB
Line 
1/*
2   orxonox - the future of 3D-vertical-scrollers
3
4   Copyright (C) 2004 orx
5
6   This program is free software; you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation; either version 2, or (at your option)
9   any later version.
10
11   ### File Specific:
12   main-programmer: Patrick Boenzli patrick@orxonox.net
13   co-programmer: ...
14*/
15
16//#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_
17
18#include "object_information_file.h"
19
20#include "resource_oif.h"
21
22
23
24/**
25 * standard constructor
26 */
27ObjectInformationFile::ObjectInformationFile()
28{
29  this->init();
30}
31
32/**
33 * constructor
34 * @param fileName name of the file
35 */
36ObjectInformationFile::ObjectInformationFile(const std::string& fileName)
37  : data(new OIFData())
38{
39  // load the oif file
40  this->data = ResourceOIF(fileName).data;
41
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();
54}
55
56
57/**
58 * initizlizing function
59 */
60void ObjectInformationFile::init()
61{
62
63}
64
65
66/**
67 * standard deconstructor
68*/
69ObjectInformationFile::~ObjectInformationFile ()
70{
71  // delete what has to be deleted here
72}
73
74
75
76ObjectInformationFile& ObjectInformationFile::operator=(const ObjectInformationFile& oif)
77{
78  this->data = oif.data;
79  return *this;
80}
81
82
83
Note: See TracBrowser for help on using the repository browser.