Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/ll2trunktemp/src/factory.h @ 3998

Last change on this file since 3998 was 3940, checked in by chris, 20 years ago

orxonox/branches/ll2trunktemp: I tried… Not working…

File size: 726 bytes
Line 
1/*!
2    \file factory.h
3    \brief philosophy stuff
4*/
5
6#ifndef _FACTORY_H
7#define _FACTORY_H
8
9class BaseObject;
10
11#include "xmlparser/tinyxml.h"
12
13//! The Factory is
14/**
15        Very philosophic description, huh?
16*/
17class Factory {
18
19 public:
20  Factory ();
21  ~Factory ();
22
23        virtual BaseObject* fabricate( TiXmlElement* root);
24        void initialize();
25        void registerFactory( Factory* factory);
26        void setClassname(char* name) {classname = name;}
27        char* getClassname() {return classname;};
28        void setNext( Factory* factory) {next = factory;}
29        Factory* getNext() {return next;}
30       
31 private:
32        char* classname;
33       
34  Factory* next;
35};
36
37// helper function
38
39const char* grabParameter( TiXmlElement* root, const char* name);
40
41#endif /* _FACTORY_H */
42
Note: See TracBrowser for help on using the repository browser.