VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtDriverConfiguration.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvUtil/vrvUtil.h>
14 
15 namespace makVrv
16 {
20  {
21  public:
22 
24  static const int theDefaultPort = 22563;
25 
27  DtDriverConfiguration(const std::string& name = "");
28 
31 
34 
36  virtual ~DtDriverConfiguration();
37 
44 
46  virtual const std::string& masterDriverAddress() const;
47 
49  virtual void setMasterDriverAddress(const std::string& addr);
50 
52  virtual int masterDriverPort() const;
53 
55  virtual void setMasterDriverPort(int port);
56 
58  virtual const std::string& udpDeviceAddress() const;
59 
61  virtual void setUdpDeviceAddress(const std::string& addr);
62 
64  virtual const std::string& udpSendAddress() const;
65 
67  virtual void setUdpSendAddress(const std::string& addr);
68 
70  virtual int udpPort() const;
71 
73  virtual void setUdpPort(int port);
74 
75  protected:
76 
77  template<class Archive>
78  void _serialize(Archive & ar, const unsigned int version)
79  {
81  ar & DT_SERIALIZE_MEMBER(myMasterDriverAddress);
82  ar & DT_SERIALIZE_MEMBER(myMasterDriverPort);
83  if ( version >= 2 )
84  {
85  ar & BOOST_SERIALIZATION_NVP(myUdpDeviceAddress);
86  ar & BOOST_SERIALIZATION_NVP(myUdpSendAddress);
87  ar & BOOST_SERIALIZATION_NVP(myUdpPort);
88  }
89  }
90 
91  std::string myMasterDriverAddress;
93  std::string myUdpDeviceAddress;
94  std::string myUdpSendAddress;
95  int myUdpPort;
96 
97  };
98 }
99 
101 

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)