CigiCelestialCtrl.h

Go to the documentation of this file.
00001 
00054 #if !defined(_CIGI_CELESTIAL_CTRL_V3_INCLUDED_)
00055 #define _CIGI_CELESTIAL_CTRL_V3_INCLUDED_
00056 
00057 #include "CigiBaseEnvCtrl.h"
00058 
00059 
00060 
00061 class CIGI_SPEC CigiCelestialCtrlV3 : public CigiBaseEnvCtrl
00062 {
00063 
00064 public:
00065 
00066    //==> Management
00067 
00068    //=========================================================
00071    CigiCelestialCtrlV3();
00072 
00073    //=========================================================
00076    virtual ~CigiCelestialCtrlV3();
00077 
00078 
00079    //==> Buffer Packing/Unpacking
00080 
00081    //=========================================================
00094    virtual int Pack(CigiBasePacket * Base, Cigi_uint8 * Buff, void *Spec) const;
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    //+> StarInt
00211 
00212    //=========================================================
00219    int SetStarInt(const float StarIntIn, bool bndchk=true);
00220 
00221    //=========================================================
00224    float GetStarInt(void) const { return(StarInt); }
00225 
00226 
00227    //+> EphemerisEn
00228 
00229    //=========================================================
00236    int SetEphemerisEn(const bool EphemerisEnIn, bool bndchk=true)
00237    {
00238       EphemerisEn = EphemerisEnIn;
00239       return(CIGI_SUCCESS);
00240    }
00241 
00242    //=========================================================
00245    bool GetEphemerisEn(void) const { return(EphemerisEn); }
00246 
00247 
00248    //+> SunEn
00249 
00250    //=========================================================
00257    int SetSunEn(const bool SunEnIn, bool bndchk=true)
00258    {
00259       SunEn = SunEnIn;
00260       return(CIGI_SUCCESS);
00261    }
00262 
00263    //=========================================================
00266    bool GetSunEn(void) const { return(SunEn); }
00267 
00268 
00269    //+> MoonEn
00270 
00271    //=========================================================
00278    int SetMoonEn(const bool MoonEnIn, bool bndchk=true)
00279    {
00280       MoonEn = MoonEnIn;
00281       return(CIGI_SUCCESS);
00282    }
00283 
00284    //=========================================================
00287    bool GetMoonEn(void) const { return(MoonEn); }
00288 
00289 
00290    //+> StarEn
00291 
00292    //=========================================================
00299    int SetStarEn(const bool StarEnIn, bool bndchk=true)
00300    {
00301       StarEn = StarEnIn;
00302       return(CIGI_SUCCESS);
00303    }
00304 
00305    //=========================================================
00308    bool GetStarEn(void) const { return(StarEn); }
00309 
00310 
00311    //+> DateVld
00312 
00313    //=========================================================
00320    int SetDateVld(const bool DateVldIn, bool bndchk=true)
00321    {
00322       DateVld = DateVldIn;
00323       return(CIGI_SUCCESS);
00324    }
00325 
00326    //=========================================================
00329    bool GetDateVld(void) const { return(DateVld); }
00330 
00331 
00332 
00333 };
00334 
00335 #endif // #if !defined(_CIGI_CELESTIAL_CTRL_V3_INCLUDED_)

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