marObject.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   wxMaracas
00004   Module:    $RCSfile: marObject.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009/05/14 13:54:43 $
00007   Version:   $Revision: 1.5 $
00008 
00009   Copyright: (c) 2002, 2003
00010   License:
00011   
00012      This software is distributed WITHOUT ANY WARRANTY; without even 
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00014      PURPOSE.  See the above copyright notice for more information.
00015 
00016 =========================================================================*/
00017 #ifndef __MAR__KERNEL__OBJECT__HXX__
00018 #define __MAR__KERNEL__OBJECT__HXX__
00019 
00020 #include <string>
00021 #include "marTypes.h"
00022 #include "marParameters.h"
00023 
00027 class creaMaracasVisu_EXPORT marObject
00028 {
00029     public:
00030 
00033     marObject( marParameters* p );
00034 
00037     virtual ~marObject( );
00038 
00046     void setParameters( marParameters* p );
00047     void copyParameters( marParameters* p );
00048     void makeACopyParameters( )
00049     {
00050             copyParameters( _parameters );
00051     }
00052 
00055     marParameters* getParameters( ) { return( _parameters ); };
00056     bool parametersOwned( ) { return( _parametersCopied ); };
00057 
00061     virtual void reset( ) = 0;
00062     virtual void copyFrom( const marObject& from ) = 0;
00063 
00067     virtual bool save( std::ofstream& os ) = 0;
00068     virtual bool load( std::ifstream& is ) = 0;
00069 
00072     bool save( std::string& nw );
00073     bool load( std::string& nr );
00074 
00075     private:
00076 
00077     marParameters* _parameters;
00078     bool _parametersCopied;
00079 
00080 };
00081 
00082 #endif // __MAR__KERNEL__OBJECT__HXX__
00083 
00084 // eof - marObject.h

Generated on 18 Mar 2010 for creaMaracasVisu_lib by  doxygen 1.6.1