00001 /* 00002 * Copyright (C) 2009 by Ulrich Friedrich Klank <klank@in.tum.de> 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 3 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 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, see <http://www.gnu.org/licenses/>. 00016 */ 00017 00018 00019 /************************************************************************ 00020 Object.h - Copyright klank 00021 00022 00023 **************************************************************************/ 00024 00025 00026 #ifndef OBJECT_H 00027 #define OBJECT_H 00028 #include "Elem.h" 00029 #include "Comm.h" 00030 #include "RelPoseFactory.h" 00031 00032 #define XML_NODE_OBJECT "Object" 00033 00034 namespace cop 00035 { 00040 class Object : public Elem 00041 { 00042 public: 00046 Object ( ); 00050 virtual ~Object ( ); 00051 00052 virtual std::string GetNodeName() const{return XML_NODE_OBJECT;} 00053 00054 virtual void SetPose(RelPose* pose); 00055 00056 virtual void SetCommCallBack(Comm* com); 00057 00058 RelPose*& GetObjectPose(){return m_relPose;} 00059 const RelPose* GetObjectPose() const {return m_relPose;} 00063 private: 00064 RelPose* m_relPose; 00065 public: 00066 bool m_bCommunicationCallBack; 00067 Comm* m_com; 00068 00069 00070 00071 protected: 00072 virtual void SaveTo(XMLTag* tag); 00073 virtual void SetData(XMLTag* tag); 00074 00075 00076 }; 00077 } 00078 #endif // OBJECT_H