25 if(!iso8601Duration.
empty())
43 static bool isWhiteSpace(
int c)
69 bool doneFlag =
false;
70 bool badParseFlag =
false;
71 bool doingTimeFlag =
false;
148 else if(isdigit(c)||(c==
'.'))
150 value +=
static_cast<char>(c);
169 if(iso8601Duration.
empty())
181 bool hasDatePeriod = ((
theYears!=0)||
185 bool hasTimePeriod = ((
theHours!=0)||
189 if(!(hasDatePeriod || hasTimePeriod))
ossim_float64 toSeconds() const
this will not use the months field or the years field but will use all other fields to calculate a to...
bool almostEqual(T x, T y, T tolerance=FLT_EPSILON)
static ossimString toString(bool aValue)
Numeric to string methods.
void clearFields()
zero out all fields
ossim_float64 toFloat64() const
void toIso8601DurationString(ossimString &result)
Will take the field values and encode into a iso8601 string format.
bool readIso8601Encoding(std::istream &in)
This will take an iso8601 encoded duration stream and parse out the individual values it will stop wh...
ossimDuration(const ossimString &iso8601Duration=ossimString(""))
This will take an iso8601 encoded duration string and parse out the individual values.
std::basic_istream< char > istream
Base class for char input streams.
ossim_uint64 toUInt64() const
bool setByIso8601DurationString(const ossimString &iso8601Duration)
This will take an iso8601 encoded duration stream and parse out the individual values it will stop wh...
std::basic_istringstream< char > istringstream
Class for char input memory streams.