VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
troposphereLayerRecord.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2023 MAK Technologies, Inc
3 ** All rights reserved.
4 *********************************************************************/
5 
6 #pragma once
7 
8 #include <vl/metocLayerRecord.h>
10 
11 #include <vl/layerStruct.h>
12 #include <vl/cloudStruct.h>
13 
15 {
16 public:
17 
20 
23 
25  DtTroposphereLayerRecord(void* netBuffer, unsigned int size);
26 
29 
32 
34  virtual bool operator==(const DtTroposphereLayerRecord& record);
35 
37  virtual bool operator==(const DtStandardVariableRecord& other);
38 
40  virtual void setLayerStruct(const DtLayerStruct& layer);
42  virtual const DtLayerStruct layerStruct() const;
44  virtual void setCloudStruct(const DtCloudStruct& cloud);
46  virtual const DtCloudStruct cloudStruct() const;
47 
48  // Writes the network representation to the given address.
49  // The assumption is that this memory is allocated and is of the proper size.
50  virtual void writeRecord(void* addr) const;
51 
54  virtual void setFromNet(const void* netRecord, unsigned int length, DtStandardVariableRetCode* retCode = NULL);
55 
57  virtual void printDataToStream(std::ostream& stream) const;
58 
60  virtual unsigned int unpaddedNetsize() const;
61 
63  virtual unsigned int paddedNetSize() const;
64 
66  virtual DtStandardVariableRecord* clone() const;
67 
68 public:
69 
71  static DtStandardVariableRecord* create(void* addr, unsigned int length);
72 
74  static unsigned int recordTypeToUse();
75 
77  static void setRecordTypeToUse(unsigned int typeToUse);
78 
79 protected:
81 
82 protected:
83 
84  static const unsigned int theMinimumSize;
85 };
virtual unsigned int unpaddedNetsize() const
This is the network size of the record without padding.
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
Definition: layerStruct.h:24
static DtStandardVariableRecord * create(void *addr, unsigned int length)
Creator of an unknown record for registering in a factory.
static const unsigned int theMinimumSize
Definition: troposphereLayerRecord.h:84
DtNetTroposphereLayerRecord * myRecordPtr
Definition: troposphereLayerRecord.h:80
Definition: metocLayerRecord.h:12
Definition: cloudStruct.h:23
static unsigned int recordTypeToUse()
Return the METOC Layer record type.
virtual DtStandardVariableRecord * clone() const
Clone.
virtual void setFromNet(const void *netRecord, unsigned int length, DtStandardVariableRetCode *retCode=NULL)
Sets the record from an address and length.
virtual bool operator==(const DtMetocLayerRecord &record)
Equals Operator.
virtual DtMetocLayerRecord & operator=(const DtMetocLayerRecord &record)
Assignment Operator.
Definition: troposphereLayerRecord.h:14
Definition: standardVariableRecord.h:22
This file declares DtNetTroposphereLayerRecord.
DtStandardVariableRetCode
Definition: standardVariableRecord.h:14
Definition: troposphereLayerRecordP.h:15
virtual void writeRecord(void *addr) const
virtual void printDataToStream(std::ostream &stream) const
Prints the data to the specified stream.
static void setRecordTypeToUse(unsigned int typeToUse)
Set the record type to use.

Document ID: Generated on Wed Mar 27 02:04:30 EDT 2024 from SVN revision 264570
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)