VR-Exchange 2.2 API Documentation
pAirMission.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2013 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <portal/pBaseObject.h>
13 #include <portal/pMessageKinds.h>
14 #include <vlutil/vlString.h>
15 
16 namespace MAKVrExchange
17 {
18 
19  class DT_DLL_LIBPORTAL DtPortalAirMission : public DtPortalBaseObject
20  {
21  public:
22 
25 
27  virtual ~DtPortalAirMission();
28 
30  DtPortalAirMission( const DtPortalAirMission& other );
31 
33  DtPortalAirMission &operator=( const DtPortalAirMission& other );
34 
35 
36  bool operator!=(const DtPortalAirMission& other) const;
37  bool operator==(const DtPortalAirMission& other) const;
38 
39  //Doxygen comments inherited from parent class
40  static DtPortalMessage *create();
41 
42  //Doxygen comments inherited from parent class
43  virtual const char * objectKindName() const;
44 
45  //Doxygen comments inherited from parent class
46  virtual unsigned int netSize() const;
47 
48  //Doxygen comments inherited from parent class
49  virtual void writeSelfToBuffer(void *buffer) const ;
50 
51  //Doxygen comments inherited from parent class
52  virtual void readSelfFromBuffer(const void *buffer);
53 
54  //Doxygen comments inherited from parent class
55  virtual std::ostream &printDataToStream( std::ostream &stream ) const;
56 
61 
62  //Doxygen comments inherited from parent class
63  virtual DtPortalMessageKind kind() const;
64 
67 
68  //Air Task Order Identifier (caused the mission to be created)
69  DtDEC_ATTRIBUTE( DtString, ATOIdentifier, atoIdentifier );
70 
71  DtDEC_ATTRIBUTE( DtU16, TaskCountry, taskCountry);
72 
73  DtDEC_ATTRIBUTE( DtString, TaskService, taskService);
74 
75  //From ATO MissionNumber is 1-9 ANBS
76  DtDEC_ATTRIBUTE( DtString, MissionNumber, missionNumber );
77 
78  //Package Identification for a collection of missions.
79  //Equivalent to the PACKAGE IDENTIFICATION field of the 9PKGDAT line of the ATO.
80  DtDEC_ATTRIBUTE( DtString, PackageIdentifier, packageIdentifier );
81 
82  //If this mission is part of a supporting part of a mission package, then this field provides a reference to the primary mission
83  DtDEC_ATTRIBUTE( DtString, PackageParent, packageParent );
84 
85  //enum from ATO Primary Mission Type codes in AMSNDAT line
86  DtDEC_ATTRIBUTE( DtU32, MissionTypePrimary, missionTypePrimary );
87 
88  DtDEC_ATTRIBUTE( DtU32, MissionTypeSecondary, missionTypeSecondary );
89 
90  DtDEC_ATTRIBUTE( DtString, TaskedUnit, taskedUnit );
91 
92  DtDEC_ATTRIBUTE( DtU32, MissionStatus, missionStatus );
93 
94  DtDEC_ATTRIBUTE( DtU32, AlertStatus, alertStatus );
95 
96  DtDEC_ATTRIBUTE( DtString, HomeBase, homeBase );
97 
98  DtDEC_ATTRIBUTE( DtString, DepartureBase, departureBase );
99 
100  DtDEC_ATTRIBUTE( DtString, RecoveryBase, recoveryBase );
101 
102  DtDEC_ATTRIBUTE( DtString, PrimaryDivertBase, primaryDivertBase );
103 
104  DtDEC_ATTRIBUTE( DtString, SecondaryDivertBase, secondaryDivertBase );
105 
106  DtDEC_ATTRIBUTE( DtString, TertiaryDivertBase, tertiaryDivertBase );
107 
108  DtDEC_ATTRIBUTE( std::vector<DtString>, AirEventList, airEventList );
109 
111 
114 
115  DtDEC_ATTRIBUTE( DtFloat64, Latitude, latitude );
116 
117  DtDEC_ATTRIBUTE( DtFloat64, Longitude, longitude );
118 
119  DtDEC_ATTRIBUTE( DtFloat64, Altitude, altitude );
120 
121  DtDEC_ATTRIBUTE( DtString, LocationName, locationName );
122 
123  DtDEC_ATTRIBUTE( DtFloat64, TimePlannedOn, timePlannedOn );
124  DtDEC_ATTRIBUTE( DtFloat64, TimePlannedOff, timePlannedOff );
125 
126  DtDEC_ATTRIBUTE( DtFloat64, TimeEstimatedOn, timeEstimatedOn );
127  DtDEC_ATTRIBUTE( DtFloat64, TimeEstimatedOff, timeEstimatedOff );
128 
129  DtDEC_ATTRIBUTE( DtFloat64, TimeActualOn, timeActualOn );
130  DtDEC_ATTRIBUTE( DtFloat64, TimeActualOff, timeActualOff );
131 
133 
134  };
135 
137  {
138  return new DtPortalAirMission();
139  }
140 
141  inline const char *DtPortalAirMission::objectKindName() const
142  {
143  return "AirMission";
144  }
145 
147  {
148  return theKind;
149  }
150 
151 
152 }
153 
154 

Document ID: Generated on Mon Apr 15 17:15:50 EDT 2013 from SVN revision 126154
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)