VR-Forces 4.0.4 Class Documentation
include/vrfGuiCore/DtIffStateData.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2012 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 
00008 
00010 
00011 #pragma once
00012 
00013 #include <vrfGuiCore/vrfGuiCore.h>
00014 #include <vrvCore/DtSimState.h>
00015 #include <vrvCore/DtStateView.h>
00016 
00017 namespace makVrv
00018 {
00019    class DtMessage;
00020 }
00021 
00022 namespace makVrf
00023 {
00024    struct DT_DLL_VRFGUICORE DtIffStateDataEntry
00025    {
00027       DtIffStateDataEntry();
00028 
00029       bool operator==(const DtIffStateDataEntry&) const;
00030       bool operator!=(const DtIffStateDataEntry& rhs) const
00031       {
00032          return !(*this == rhs);
00033       }
00034 
00035       std::string myGlobalId;
00036       std::string myHostId;
00037       int mySystemName;
00038       int mySystemType;
00039       bool mySystemOn;
00040       bool mySystemOperational;
00041       bool myPowerReduction;
00042       bool myDamaged;
00043       bool myMalfunctioning;
00044       bool myRrbIsOn;
00045       bool myRadarEnhancement;
00046       int myRrbCode;
00047 
00048       struct Mode
00049       {
00050          bool isOn;
00051          short code;
00052          bool enabled;
00053          bool malfunctioning;
00054          bool damaged;
00055       };
00056 
00057       Mode myModes[6];
00058       bool myMode4CryptoAvailable;
00059       short myMode4PseudoCrypto;
00060       int myAlternateMode4;
00061       int myModeCAltitude;
00062       bool myLayer2DataAvailable;
00063       bool myModeCAltitudeAvailable;
00064       bool myModeSIsTcasI;
00065       bool myIdentSquawkFlashOn;
00066       bool myStiOn;
00067       bool myEmergencyOn;
00068    };
00069 
00070    struct DT_DLL_VRFGUICORE DtIffStateData : public makVrv::DtSimState
00071    {
00073       DtIffStateData();
00074 
00076       virtual ~DtIffStateData();
00077 
00078       typedef std::map<makVrv::DtElementID, DtIffStateDataEntry> IffStateDataMap;
00079       IffStateDataMap myStateData;
00080    };
00081 
00083    DT_DLL_VRFGUICORE makVrv::DtMessage& operator<<( makVrv::DtMessage& msg,const DtIffStateData& state );
00084    DT_DLL_VRFGUICORE makVrv::DtMessage& operator<<( makVrv::DtMessage& msg,const DtIffStateDataEntry& state );
00085 
00087    DT_DLL_VRFGUICORE makVrv::DtMessage& operator>>( makVrv::DtMessage& msg, DtIffStateData& state );
00088    DT_DLL_VRFGUICORE makVrv::DtMessage& operator>>( makVrv::DtMessage& msg, DtIffStateDataEntry& state );
00089 
00091    typedef makVrv::DtStateView<DtIffStateData> DtIffStateDataView;
00092 }

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)