00001 /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- 00002 00003 this file is part of rcssserver3D 00004 Fri May 9 2003 00005 Copyright (C) 2003 Koblenz University 00006 $Id: basenode_c.cpp,v 1.6 2004/04/11 17:05:28 rollmark Exp $ 00007 00008 This program is free software; you can redistribute it and/or modify 00009 it under the terms of the GNU General Public License as published by 00010 the Free Software Foundation; version 2 of the License. 00011 00012 This program is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 GNU General Public License for more details. 00016 00017 You should have received a copy of the GNU General Public License 00018 along with this program; if not, write to the Free Software 00019 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00020 */ 00021 00022 #include "basenode.h" 00023 00024 using namespace oxygen; 00025 using namespace zeitgeist; 00026 using namespace boost; 00027 using namespace std; 00028 00029 FUNCTION(BaseNode,importScene) 00030 { 00031 string inFileName; 00032 00033 // importScene <fileName> parameter ... 00034 00035 if ( 00036 (in.GetSize() == 0) || 00037 (! in.GetValue(in[0],inFileName)) 00038 ) 00039 { 00040 return false; 00041 } 00042 00043 shared_ptr<ParameterList> parameter(new ParameterList(in)); 00044 00045 // remove filename argument 00046 parameter->Pop_Front(); 00047 00048 return obj->ImportScene(inFileName, parameter); 00049 } 00050 00051 void CLASS(BaseNode)::DefineClass() 00052 { 00053 DEFINE_BASECLASS(zeitgeist/Node); 00054 DEFINE_FUNCTION(importScene); 00055 }