CigiEnvCtrlV2.h

Go to the documentation of this file.
00001 
00054 #if !defined(_CIGI_ENV_CTRL_V2_INCLUDED_)
00055 #define _CIGI_ENV_CTRL_V2_INCLUDED_
00056 
00057 #include "CigiBaseEnvCtrl.h"
00058 
00059 
00060 
00061 class CIGI_SPEC CigiEnvCtrlV2 : public CigiBaseEnvCtrl
00062 {
00063 
00064 public:
00065 
00066    //==> Management
00067 
00068    //=========================================================
00071    CigiEnvCtrlV2();
00072 
00073    //=========================================================
00076    virtual ~CigiEnvCtrlV2();
00077 
00078 
00079    //==> Buffer Packing/Unpacking
00080 
00081    //=========================================================
00093    virtual int Pack(CigiBasePacket * Base, Cigi_uint8 * Buff, void *Spec) const;
00094 
00095    //=========================================================
00106    virtual int Unpack(Cigi_uint8 * Buff, bool Swap, void *Spec);
00107 
00108 
00109    //==> Hold Object Manipulation
00110 
00111    //=========================================================
00115    virtual void FillHold(CigiBaseEnvCtrl * Hold) const;
00116 
00117 
00118 
00119    //==> Accessing Member Variable Values functions
00120 
00121    //+> Hour
00122 
00123    //=========================================================
00130    int SetHour(const Cigi_uint8 HourIn, bool bndchk=true);
00131 
00132    //=========================================================
00135    Cigi_uint8 GetHour(void) const { return(Hour); }
00136 
00137 
00138    //+> Minute
00139 
00140    //=========================================================
00147    int SetMinute(const Cigi_uint8 MinuteIn, bool bndchk=true);
00148 
00149    //=========================================================
00152    Cigi_uint8 GetMinute(void) const { return(Minute); }
00153 
00154 
00155    //+> Month
00156 
00157    //=========================================================
00164    int SetMonth(const Cigi_uint8 MonthIn, bool bndchk=true);
00165 
00166    //=========================================================
00169    Cigi_uint8 GetMonth(void) const { return(Month); }
00170 
00171 
00172    //+> Day
00173 
00174    //=========================================================
00181    int SetDay(const Cigi_uint8 DayIn, bool bndchk=true);
00182 
00183    //=========================================================
00186    Cigi_uint8 GetDay(void) const { return(Day); }
00187 
00188 
00189    //+> Year
00190 
00191    //=========================================================
00198    int SetYear(const Cigi_uint16 YearIn, bool bndchk=true)
00199    {
00200       Year = YearIn;
00201       return(CIGI_SUCCESS);
00202    }
00203 
00204    //=========================================================
00207    Cigi_uint16 GetYear(void) const { return(Year); }
00208 
00209 
00210    //+> EphemerisEn
00211 
00212    //=========================================================
00220    int SetEphemerisEn(const bool EphemerisEnIn, bool bndchk=true)
00221    {
00222       EphemerisEn = EphemerisEnIn;
00223       return(CIGI_SUCCESS);
00224    }
00225 
00226    //=========================================================
00229    bool GetEphemerisEn(void) const { return(EphemerisEn); }
00230 
00231 
00232    //+> Humidity
00233 
00234    //=========================================================
00241    int SetHumidity(const Cigi_uint8 HumidityIn, bool bndchk=true);
00242 
00243    //=========================================================
00246    Cigi_uint8 GetHumidity(void) const { return(Humidity); }
00247 
00248 
00249    //+> AtmosEn
00250 
00251    //=========================================================
00259    int SetAtmosEn(const bool AtmosEnIn, bool bndchk=true)
00260    {
00261       AtmosEn = AtmosEnIn;
00262       return(CIGI_SUCCESS);
00263    }
00264 
00265    //=========================================================
00268    bool GetAtmosEn(void) const { return(AtmosEn); }
00269 
00270 
00271    //+> Aerosol
00272 
00273    //=========================================================
00280    int SetAerosol(const float AerosolIn, bool bndchk=true);
00281 
00282    //=========================================================
00285    float GetAerosol(void) const { return(Aerosol); }
00286 
00287 
00288    //+> AirTemp
00289 
00290    //=========================================================
00297    int SetAirTemp(const float AirTempIn, bool bndchk=true)
00298    {
00299       AirTemp = AirTempIn;
00300       return(CIGI_SUCCESS);
00301    }
00302 
00303    //=========================================================
00306    float GetAirTemp(void) const { return(AirTemp); }
00307 
00308 
00309    //+> Visibility
00310 
00311    //=========================================================
00318    int SetVisibility(const float VisibilityIn, bool bndchk=true);
00319 
00320    //=========================================================
00323    float GetVisibility(void) const { return(Visibility); }
00324 
00325 
00326    //+> HorizWindSp
00327 
00328    //=========================================================
00335    int SetHorizWindSp(const float HorizWindSpIn, bool bndchk=true);
00336 
00337    //=========================================================
00340    float GetHorizWindSp(void) const { return(HorizWindSp); }
00341 
00342 
00343    //+> WindDir
00344 
00345    //=========================================================
00352    int SetWindDir(const float WindDirIn, bool bndchk=true);
00353 
00354    //=========================================================
00357    float GetWindDir(void) const { return(WindDir); }
00358 
00359 
00360    //+> BaroPress
00361 
00362    //=========================================================
00369    int SetBaroPress(const float BaroPressIn, bool bndchk=true);
00370 
00371    //=========================================================
00374    float GetBaroPress(void) const { return(BaroPress); }
00375 
00376 
00377 };
00378 
00379 #endif // #if !defined(_CIGI_ENV_CTRL_V2_INCLUDED_)

Generated on Wed Apr 29 08:59:56 2009 for CCL by  doxygen 1.4.7