VR-Forces 4.0.4 Class Documentation
include/makArchives/DtTerrainOperationRecord.h
Go to the documentation of this file.
00001 /****************************************************************************** 
00002 ** Copyright (c) 2007 MAK Technologies, Inc. 
00003 ** All rights reserved. 
00004 ******************************************************************************/ 
00005 /****************************************************************************** 
00006 ** $RCSfile: DtTerrainOperationRecord.h,v $ $Revision: 1.7 $ $State: Exp $ 
00007 ******************************************************************************/ 
00008  
00012  
00013 #ifndef DtTerrainOperationRecord_H_ 
00014 #define DtTerrainOperationRecord_H_ 
00015  
00016 #include <makArchives/makArchives.h> 
00017  
00018 namespace makArchives 
00019 { 
00022    class DT_DLL_MAKARCHIVES DtTerrainOperationRecord 
00023    { 
00024 
00025    public:
00026 
00027       enum OperationType { NoOp, Add };
00028       enum InputType { NoInput, Patch, FeatureLayer, Generic };
00029       enum TargetApplication { 
00030          NoApplication, 
00031          Visualization, 
00032          Simulation,
00033          VisualizationAndSimulation
00034       };
00035 
00037       DtTerrainOperationRecord();
00038 
00040       DtTerrainOperationRecord(const DtTerrainOperationRecord& orig);
00041 
00043       DtTerrainOperationRecord& operator=(const DtTerrainOperationRecord& orig);
00044 
00046       ~DtTerrainOperationRecord();
00047 
00049       bool operator==(const DtTerrainOperationRecord& record) const;
00050 
00052       void setOperationType(OperationType opType);
00053 
00055       OperationType operationType() const;
00056 
00058       void setInputType(InputType inType);
00059 
00061       InputType inputType() const;
00062 
00064       void setTargetApplication(TargetApplication targetApplication);
00065 
00067       TargetApplication targetApplication() const;
00068 
00070       void setIndex(int index);
00071 
00073       int index() const;
00074 
00075    protected:
00076 
00077 
00078       friend class boost::serialization::access;
00079 
00083       template<class Archive>
00084          void serialize(Archive & ar, const unsigned int version)
00085       {
00086          ar & BOOST_SERIALIZATION_NVP(myOperationType);
00087          ar & BOOST_SERIALIZATION_NVP(myInputType);         
00088          if (version > 0)
00089          {
00090             ar & BOOST_SERIALIZATION_NVP(myTargetApplication);            
00091          }
00092          
00093          ar & BOOST_SERIALIZATION_NVP(myIndex);
00094       }
00095 
00096 
00097    protected:
00098 
00099       OperationType myOperationType;
00100       InputType myInputType;
00101       TargetApplication myTargetApplication;
00102       int myIndex;
00103 
00104 
00105    }; 
00106 } 
00107 
00108 BOOST_CLASS_VERSION(makArchives::DtTerrainOperationRecord, 1)
00109 
00110 #endif 
00111  

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)