VR-Forces 4.0.4 Class Documentation
include/vrvUtil/DtDriverConfiguration.h
Go to the documentation of this file.
00001 /****************************************************************************** 
00002 ** Copyright (c) 2007 MAK Technologies, Inc. 
00003 ** All rights reserved. 
00004 ******************************************************************************/ 
00005 /****************************************************************************** 
00006 ** $RCSfile: DtDriverConfiguration.h,v $ $Revision: 1.19 $ $State: Exp $ 
00007 ******************************************************************************/ 
00008  
00012  
00013 #ifndef DtDriverConfiguration_H_ 
00014 #define DtDriverConfiguration_H_ 
00015  
00016 #include <vrvUtil/vrvUtil.h> 
00017 #include <vrvUtil/DtConfiguration.h>
00018 
00019 namespace makVrv 
00020 { 
00023    class DT_DLL_VRVUTIL DtDriverConfiguration : public DtConfiguration
00024    { 
00025    public:
00026 
00028       static const int theDefaultPort = 22563;
00029 
00031       DtDriverConfiguration(const std::string& name = "");
00032 
00034       DtDriverConfiguration(const DtDriverConfiguration&);
00035 
00037       DtDriverConfiguration& operator=(const DtDriverConfiguration&);
00038 
00040       virtual ~DtDriverConfiguration();
00041 
00047       DT_DECLARE_serialize_FUNCTIONS
00048 
00050       virtual const std::string& masterDriverAddress() const;
00051 
00053       virtual void setMasterDriverAddress(const std::string& addr);
00054 
00056       virtual int masterDriverPort() const;
00057 
00059       virtual void setMasterDriverPort(int port);
00060 
00061    protected:
00062 
00063       template<class Archive>
00064       void _serialize(Archive & ar, const unsigned int version)
00065       {
00066          ar & DT_SERIALIZE_BASE(DtConfiguration);
00067          ar & DT_SERIALIZE_MEMBER(myMasterDriverAddress);
00068          ar & DT_SERIALIZE_MEMBER(myMasterDriverPort);
00069       }
00070 
00071       std::string myMasterDriverAddress;
00072       int myMasterDriverPort;
00073 
00074    }; 
00075 }
00076 
00077 BOOST_CLASS_VERSION(makVrv::DtDriverConfiguration,1)
00078 
00079 #endif 

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)