41 #ifndef OBJECTS_GENERAL_DATE_STD_BASE_HPP
42 #define OBJECTS_GENERAL_DATE_STD_BASE_HPP
52 #ifndef BEGIN_objects_SCOPE
53 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
54 # define END_objects_SCOPE END_SCOPE(objects)
118 bool IsSetYear(
void)
const;
125 bool CanGetYear(
void)
const;
128 void ResetYear(
void);
134 TYear GetYear(
void)
const;
146 TYear& SetYear(
void);
156 bool IsSetMonth(
void)
const;
163 bool CanGetMonth(
void)
const;
166 void ResetMonth(
void);
172 TMonth GetMonth(
void)
const;
194 bool IsSetDay(
void)
const;
201 bool CanGetDay(
void)
const;
210 TDay GetDay(
void)
const;
232 bool IsSetSeason(
void)
const;
239 bool CanGetSeason(
void)
const;
242 void ResetSeason(
void);
248 const TSeason& GetSeason(
void)
const;
271 bool IsSetHour(
void)
const;
278 bool CanGetHour(
void)
const;
281 void ResetHour(
void);
287 THour GetHour(
void)
const;
299 THour& SetHour(
void);
309 bool IsSetMinute(
void)
const;
316 bool CanGetMinute(
void)
const;
319 void ResetMinute(
void);
347 bool IsSetSecond(
void)
const;
354 bool CanGetSecond(
void)
const;
357 void ResetSecond(
void);
378 virtual void Reset(
void);
NOTE: this is NOT a unix tm struct.
Base class for all serializable objects.
static char UnassignedByte(void)
void ThrowUnassigned(TMemberIndex index) const
static string UnassignedString(void)
uint32_t Uint4
4-byte (32-bit) unsigned integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_GENERAL_EXPORT
TMinute GetMinute(void) const
Get the Minute member data.
bool IsSetYear(void) const
full year (including 1900) Check if a value has been assigned to Year data member.
CDate_std_Base(const CDate_std_Base &)
TMinute & SetMinute(void)
Assign a value to Minute data member.
TSeason & SetSeason(void)
Assign a value to Season data member.
TSecond GetSecond(void) const
Get the Second member data.
TMonth & SetMonth(void)
Assign a value to Month data member.
void ResetHour(void)
Reset Hour data member.
const TSeason & GetSeason(void) const
Get the Season member data.
THour GetHour(void) const
Get the Hour member data.
bool CanGetHour(void) const
Check if it is safe to call GetHour method.
bool CanGetDay(void) const
Check if it is safe to call GetDay method.
bool IsSetDay(void) const
day of month (1-31) Check if a value has been assigned to Day data member.
CDate_std_Base & operator=(const CDate_std_Base &)
Tparent::CMemberIndex< E_memberIndex, 8 > TmemberIndex
void ResetMonth(void)
Reset Month data member.
bool CanGetSecond(void) const
Check if it is safe to call GetSecond method.
void ResetDay(void)
Reset Day data member.
void ResetSecond(void)
Reset Second data member.
bool CanGetSeason(void) const
Check if it is safe to call GetSeason method.
bool IsSetMinute(void) const
minute of hour (0-59) Check if a value has been assigned to Minute data member.
bool CanGetMinute(void) const
Check if it is safe to call GetMinute method.
bool IsSetHour(void) const
hour of day (0-23) Check if a value has been assigned to Hour data member.
void ResetMinute(void)
Reset Minute data member.
bool IsSetSeason(void) const
for "spring", "may-june", etc Check if a value has been assigned to Season data member.
TYear & SetYear(void)
Assign a value to Year data member.
bool IsSetMonth(void) const
month (1-12) Check if a value has been assigned to Month data member.
TYear GetYear(void) const
Get the Year member data.
TMonth GetMonth(void) const
Get the Month member data.
TDay & SetDay(void)
Assign a value to Day data member.
TDay GetDay(void) const
Get the Day member data.
bool IsSetSecond(void) const
second of minute (0-59) Check if a value has been assigned to Second data member.
bool CanGetYear(void) const
Check if it is safe to call GetYear method.
void ResetYear(void)
Reset Year data member.
TSecond & SetSecond(void)
Assign a value to Second data member.
THour & SetHour(void)
Assign a value to Hour data member.
DECLARE_INTERNAL_TYPE_INFO()
bool CanGetMonth(void) const
Check if it is safe to call GetMonth method.
const GenericPointer< typename T::ValueType > T2 value