MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
lcConnect.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2003 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include "lcPdu.h"
12 
14 typedef struct DtLgrConnectData
15 {
16  DtNetU16 loggerNameLength;
17  DtNetU16 loggerNameOffset;
18  DtNetU32 loggerProtocol;
19  // DtNetU8 loggerName[];
21 
22 
27 {
28 public:
29 
32  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER );
33 
36  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER, DtPduFactory* pduFactory = 0 );
37 
39  DtLgrConnectPdu( const DtEntityIdentifier& sender,
40  const DtEntityIdentifier& receiver, const DtString& name, DtLgrProtocol protocol,
41  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER );
42 
44  virtual ~DtLgrConnectPdu();
45 
48 
51 
52  virtual const char* loggerName() const;
53  virtual void setLoggerName( const DtString& name );
54 
55  virtual DtLgrProtocol protocol() const;
56  virtual void setProtocol( DtLgrProtocol protocolNumber );
57 
59  virtual void printDataToStream(std::ostream& stream) const;
60 
61 protected:
63  void initData();
64 
66  virtual DtLgrConnectData* params() const;
67 };
68 
69 

Document ID: Generated on Wed Jun 5 18:45:18 EDT 2019 from SVN revision 198968
Copyright © 2019 VT MAK. All Rights Reserved (www.mak.com)