VR-Forces 4.0.4 Class Documentation
include/vrfutil/ceAltitude.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2006 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: ceAltitude.h,v $ $Revision: 1.1 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00012 #ifndef DtCeSAltitudeOperator_H_
00013 #define DtCeSAltitudeOperator_H_
00014 
00015 #include "vrfutil/condExpr.h"
00016 #include "vrfutil/rwReal.h"
00017 #include "vrfutil/rwString.h"
00018 
00019 const char DtCeAltitudeTypeName[] = "Altitude";
00020 
00021 const char DtCeAltitudeLessThan[] = "<";
00022 const char DtCeAltitudeLessThanOrEqualTo[] = "<=";
00023 const char DtCeAltitudeGreaterThan[] = ">";
00024 const char DtCeAltitudeGreaterThanOrEqualTo[] = ">=";
00025 const char DtCeAltitudeEqualTo[] = "=";
00026 
00029 struct DtNetCeAltitude
00030 {
00031    DtNetFloat64 myAltitude;          
00032    DtNetU8 myEntityNameStringLength; 
00033    DtNetU8 myModifierStringLength;   
00034    DtNetU8 myOperStringLength;       
00035    DtNetU8 myPadding;                
00036    DtNetU8 myPadding1;               
00037    DtNetU8 myPadding2;               
00038    DtNetU8 myPadding3;               
00039    DtNetU8 myPadding4;               
00040 
00041 
00042 };
00043    
00050 #include "vrfutil/vrfutilDefines.h"
00051 class DT_DLL_vrfutil DtCeAltitude : public DtSimCondExpr
00052 {
00053 public:
00054 
00056    DtCeAltitude();
00057 
00059    DtCeAltitude(DtReaderWriterRegistry* parentRegistry);
00060 
00062    DtCeAltitude(const DtCeAltitude& orig,
00063       DtReaderWriterRegistry* parentRegistry = NULL);
00064 
00066    virtual ~DtCeAltitude();
00067 
00069    DtCeAltitude& operator=(const DtCeAltitude& orig);
00070 
00072    virtual DtSimCondExpr* clone(
00073       DtReaderWriterRegistry* parentRegistry = NULL);
00074 
00076    virtual int type() const;
00077 
00079    virtual void setEntityName(const DtString& name);
00080    virtual const DtString& entityName() const;
00081 
00088    virtual void setModifier(const DtString& arg);
00089    virtual const DtString& modifier() const;
00090 
00092    virtual void setAltitude(DtReal alt);
00093    virtual DtReal altitude() const;
00094 
00096    virtual void setOper(const DtString& arg);
00097    virtual const DtString& oper() const;
00098 
00108    virtual DtString stringRep(int subExprIndex = DtSR_EXPR) const;
00109 
00112    virtual int netRepSize() const;
00113 
00115    virtual bool setFromNet(const char* contentBuffer, 
00116       unsigned contentSize);
00117 
00120    virtual bool setToNet();
00121 
00122    static DtSimCondExpr * creator();
00123 
00124 protected:
00125    DtRwString myEntityName;
00126    DtRwString myModifier;
00127    DtRwReal myAltitude;
00128    DtRwString myOper;
00129 };
00130 
00131 #endif

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)