VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
supplyStruct.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2025 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
6 #pragma once
7 
9 #include <vlutil/vlMachineTypes.h>
10 #include <vlutil/vlString.h>
11 #include <vl/globalObjectDesignator.h>
12 #include <vlpi/entityType.h>
13 #include <vlpi/entityIdentifier.h>
14 #include <matrix/vlVector.h>
15 #include <vector>
16 
17 
19 {
20  Unspecified = 0,
21  Cargo = 1
22 };
23 
24 
25 
29 {
30 public:
32  ~DtSupplyStruct();
33  DtSupplyStruct(const DtSupplyStruct& orig);
34  DtSupplyStruct& operator=(const DtSupplyStruct& orig);
35 
36  virtual void setSupplyType(const DtEntityType& val);
37  virtual const DtEntityType& supplyType() const;
38  virtual void setStorageLocation(DtStorageLocation val);
39  virtual DtStorageLocation storageLocation() const;
40  virtual void setQuantity(DtFloat32 val);
41  virtual DtFloat32 quantity() const;
42 
43  bool operator==(const DtSupplyStruct& other) const;
44  bool operator!=(const DtSupplyStruct& other) const;
45 
46  static int netSize();
47  static int octetBoundary();
48  static unsigned int getPaddingSize(unsigned long long byteOffset, unsigned int boundary);
49 
50  void writeToBuffer( char* buffer ) const;
51  void fillFromBuffer( const char* buffer, int bufferSize, int offset );
52 
53  virtual void printData() const;
54  virtual void printDataToStream(std::ostream &) const;
55 
56 protected:
57 
58  DtEntityType mySupplyType;
61 };
62 
63 DT_DLL_vrfExtObjects std::ostream& operator<<(std::ostream& stream, DtStorageLocation);
64 DT_DLL_vrfExtObjects std::ostream& operator<<(std::ostream& stream, const DtSupplyStruct&);
65 
66 
DtStorageLocation myStorageLocation
Definition: supplyStruct.h:59
DtFloat32 myQuantity
Definition: supplyStruct.h:60
DtStorageLocation
Definition: supplyStruct.h:18
DT_DLL_terrainCS bool operator==(const DtDegMinSec &lhs, const DtDegMinSec &rhs)
DT_DLL_features std::ostream & operator<<(std::ostream &, const DtFeatureTransform &)
std::ostream output.
Stores the quantity of a single supply type.
Definition: supplyStruct.h:28
float DtFloat32
Definition: vrvControlStructTypes.h:35
DtEntityType mySupplyType
Definition: supplyStruct.h:58
voidpf stream
Definition: ioapi.h:39
DT_DLL_terrainCS bool operator!=(const DtDegMinSec &lhs, const DtDegMinSec &rhs)
voidpf uLong offset
Definition: ioapi.h:42
#define DT_DLL_vrfExtObjects
Definition: dllExport.h:23

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)