Changeset 124 for XMLIO_V2/dev/dev_rv/src/XMLIO/context.hpp
- Timestamp:
- 10/01/10 11:32:41 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XMLIO_V2/dev/dev_rv/src/XMLIO/context.hpp
r123 r124 52 52 } 53 53 } 54 55 static Context* GetCurrentContext(void) 56 { return (Context::GetObject(Context::GetCurrentContextId())); } 54 57 55 58 static void SetCurrentContext(const string& id) … … 150 153 DomainDefinition * getDomainDefinition(void) const { return (this->domainDef); } 151 154 152 void updateCurrentDate(const Duration* const dr = NULL)153 {154 static Duration dur = Hour;155 if (dr != NULL) dur = *dr;156 Date newCurrentDate = ccalendar->getCurrentDate() + dur;157 ccalendar->getCurrentDate() = newCurrentDate;158 }159 160 155 AbstractCalendar * getCalendar(void) const { return (this->ccalendar ); } 161 156 AbstractCalendar * setCalendar(const string& _calName, const string& _dateStr)
Note: See TracChangeset
for help on using the changeset viewer.