MAK Data Logger API Documentation for HLA
 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 
DtNetU16 loggerNameOffset
Definition: lcConnect.h:17
DtNetU32 loggerProtocol
Definition: lcConnect.h:18
struct DtLgrConnectData DtLgrConnectData
Network representation of logger state data.
Definition: lgrControlP.h:61
Network representation of logger state data.
Definition: lcConnect.h:14
DtNetU16 loggerNameLength
Definition: lcConnect.h:16
DtLgrControlPdu & operator=(const DtLgrControlPdu &src)
assignment operator
Instances of DtLgrControlPdu are a family of messages used to control a remote instance of the MAK-Lo...
Definition: lcPdu.h:137
Contains DtLgrControlPdu.
DtLgrProtocol
Protocols.
Definition: lcPdu.h:42
virtual void printDataToStream(std::ostream &stream) const
Print contents.
Instances of DtLgrConnectPdu are used to convey to a remote logger- controller the total current stat...
Definition: lcConnect.h:26
#define DT_DLL_LOGGERCONTROL
Include vlconfig.h to get relivant platform info like if we need declspec stuff or not...
Definition: loggerControlDefines.h:31

Document ID: Generated on Thu Sep 2 15:35:22 EDT 2021 from SVN revision 233992
Copyright © 2021 MAK Technologies. All Rights Reserved (www.mak.com)