Page principale | Liste des namespaces | Hiérarchie des classes | Liste par ordre alphabétique | Liste des composants | Liste des fichiers | Membres des namespaces | Composants | Déclarations

# ExCObject.cpp

Aller à la documentation de ce fichier.

    00001 /*
    00002  * ExNihilo 3D Engine
    00003  *
    00004  *  This program is free software; you can redistribute it and/or modify
    00005  *  it under the terms of the GNU General Public License as published by
    00006  *  the Free Software Foundation; either version 2 of the License, or
    00007  *  (at your option) any later version.
    00008  *
    00009  *  This program is distributed in the hope that it will be useful,
    00010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
    00011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    00012  *  GNU Library General Public License for more details.
    00013  *
    00014  *  You should have received a copy of the GNU General Public License
    00015  *  along with this program; if not, write to the Free Software
    00016  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
    00017  *
    00018  * Please read AUTHORS file !!!
    00019  *
    00020  * $Id: ExCObject.cpp,v 1.21 2002/12/03 22:40:03 data Exp $
    00021  *
    00022  */
    00023
    00024 #include "ExCObject.h"
    00025
    00026 // Construction/Destruction
    00027
    00028 ExCObject::ExCObject()
    00029 {
    00030         SetName("EXCOBJECTERROR");
    00031         SetType(typeid(this).name());
    00032         SetId(-1);
    00033
    00034 }
    00035
    00036 ExCObject::~ExCObject()
    00037 {
    00038
    00039 }
    00040
    00041 ExCObject::ExCObject(std::string FileName)
    00042 {
    00043         ExCObject();
    00044         LoadFile(FileName);
    00045 }
    00046
    00047 void ExCObject::SetIdName(ExNihilo::IdName idname)
    00048 {
    00049         SetName(idname.second);
    00050         SetId(idname.first);
    00051 }
    00052
    00053 bool ExCObject::LoadFile(std::string FileName)
    00054 {
    00055 Guard(bool ExCObject::LoadFile(std::string FileName))
    00056         return true;
    00057 UnGuard
    00058 }
    00059
    00060 void ExCObject::Draw(void)
    00061 {
    00062 Guard(void ExCObject::Draw(void))
    00063 UnGuard
    00064 }
    00065
    00066 void ExCObject::SetFlux(std::ostrstream *consol,ExCFluxAction *action)
    00067 {
    00068         Consol=consol;
    00069         FluxAction=action;
    00070 }
    00071