[7297] Fixed profession spells sorting in trainer spell list at client.
[getmangos.git] / dep / ACE_wrappers / ace / Date_Time.h
bloba15d435eeb84f07fe6f1dfa56632adb4ce97eecf
1 // -*- C++ -*-
3 //==========================================================================
4 /**
5 * @file Date_Time.h
7 * $Id: Date_Time.h 80826 2008-03-04 14:51:23Z wotte $
9 * @author Tim Harrison (harrison@cs.wustl.edu) (and he's darn proud of this ;-))
12 //==========================================================================
14 #ifndef ACE_DATE_TIME_H
15 #define ACE_DATE_TIME_H
16 #include /**/ "ace/pre.h"
18 #include /**/ "ace/ACE_export.h"
20 #if !defined (ACE_LACKS_PRAGMA_ONCE)
21 # pragma once
22 #endif /* ACE_LACKS_PRAGMA_ONCE */
24 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
26 class ACE_Time_Value;
28 /**
29 * @class ACE_Date_Time
31 * @brief System independent representation of date and time.
33 class ACE_Export ACE_Date_Time
35 public:
36 /// Constructor initializes current time/date info.
37 ACE_Date_Time (void);
39 /// Constructor initializes with the given ACE_Time_Value
40 explicit ACE_Date_Time (const ACE_Time_Value& timevalue);
42 /// Constructor with init values, no check for validy
43 /// Set/get portions of ACE_Date_Time, no check for validity.
44 ACE_Date_Time (long day,
45 long month = 0,
46 long year = 0,
47 long hour = 0,
48 long minute = 0,
49 long second = 0,
50 long microsec = 0,
51 long wday = 0);
53 /// Update to the current time/date.
54 void update (void);
56 /// Update to the given ACE_Time_Value
57 void update (const ACE_Time_Value& timevalue);
59 /// Get day.
60 long day (void) const;
62 /// Set day.
63 void day (long day);
65 /// Get month.
66 long month (void) const;
68 /// Set month.
69 void month (long month);
71 /// Get year.
72 long year (void) const;
74 /// Set year.
75 void year (long year);
77 /// Get hour.
78 long hour (void) const;
80 /// Set hour.
81 void hour (long hour);
83 /// Get minute.
84 long minute (void) const;
86 /// Set minute.
87 void minute (long minute);
89 /// Get second.
90 long second (void) const;
92 /// Set second.
93 void second (long second);
95 /// Get microsec.
96 long microsec (void) const;
98 /// Set microsec.
99 void microsec (long microsec);
101 /// Get weekday.
102 long weekday (void) const;
104 /// Set weekday.
105 void weekday (long wday);
107 private:
108 long day_;
109 long month_;
110 long year_;
111 long hour_;
112 long minute_;
113 long second_;
114 long microsec_;
115 long wday_;
118 ACE_END_VERSIONED_NAMESPACE_DECL
120 #if defined (__ACE_INLINE__)
121 #include "ace/Date_Time.inl"
122 #endif /* __ACE_INLINE__ */
124 #include /**/ "ace/post.h"
125 #endif /* ACE_DATE_TIME_H */