00001 // $Id: property_8h-source.html,v 1.2 2002/06/20 17:09:51 mkrohn5 Exp $ 00002 00003 // Property Header File 00004 // Written by: Marco Krohn, <marco.krohn@gmx.de> 00005 00006 // Copyright (C) 2001 - , Marco Krohn, <marco.krohn@gmx.de> 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; either version 2, or (at your option) 00011 // any later version. 00012 // 00013 // This program is distributed in the hope that it will be useful, 00014 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 // GNU General Public License for more details. 00017 00018 #ifndef __PROPERTY_INCLUDED 00019 #define __PROPERTY_INCLUDED 00020 00021 #include "common/link.h" 00022 00023 class TRace; 00024 00025 00026 00027 00028 00029 //---------------------------------------- class TProperty ---------------------------------------- 00030 00045 class TProperty : public TLinkable 00046 { 00047 public: 00051 TProperty( TRace* Creator=0, TRace* Owner=0 ); 00052 00057 TRace* getCreator() const; 00062 TRace* getOwner() const; 00071 virtual bool load( TDataPackageList* in ); 00080 virtual bool save( TDataPackageList* out ) const; 00087 void setCreator( TRace* creator ); 00093 void setOwner( TRace* owner ); 00094 00095 private: 00099 TLink<TRace> fCreator; 00103 TLink<TRace> fOwner; 00104 }; 00105 00106 00107 00108 00109 00110 #endif // __PROPRERTY_INCLUDED