Classes | |
class | IlCalendar |
Abstract base class managing a calendar date. More... | |
class | IlTimeZone |
Dummy IlTimeZone class - not really used. More... | |
Macros | |
#define | IL_DATE_FAILURE(x) |
Tests a IlDateErrorCode value for failure. More... | |
#define | IL_DATE_MILLIS_PER_DAY |
The number of milliseconds in 1 day. | |
#define | IL_DATE_MILLIS_PER_HOUR |
The number of milliseconds in 1 hour. | |
#define | IL_DATE_MILLIS_PER_MINUTE |
The number of milliseconds in 1 minute. | |
#define | IL_DATE_MILLIS_PER_SECOND |
The number of milliseconds in 1 second. | |
#define | IL_DATE_SUCCESS(x) |
Tests a IlDateErrorCode value for success. More... | |
Enumerations | |
enum | IlDateErrorCode { IL_DATE_ERROR_INFO_START, IL_DATE_USING_FALLBACK_ERROR, IL_DATE_USING_DEFAULT_ERROR, IL_DATE_SAFECLONE_ALLOCATED_ERROR, IL_DATE_ERROR_INFO_LIMIT, IL_DATE_ZERO_ERROR, IL_DATE_ILLEGAL_ARGUMENT_ERROR , IL_DATE_INTERNAL_PROGRAM_ERROR , IL_DATE_MEMORY_ALLOCATION_ERROR , IL_DATE_PARSE_ERROR, IL_DATE_INVALID_CHAR_FOUND, IL_DATE_TRUNCATED_CHAR_FOUND, IL_DATE_ILLEGAL_CHAR_FOUND, IL_DATE_INVALID_TABLE_FORMAT, IL_DATE_INVALID_TABLE_FILE, IL_DATE_BUFFER_OVERFLOW_ERROR, IL_DATE_UNSUPPORTED_ERROR, IL_DATE_RESOURCE_TYPE_MISMATCH, IL_DATE_ILLEGAL_ESCAPE_SEQUENCE, IL_DATE_UNSUPPORTED_ESCAPE_SEQUENCE, IL_DATE_NO_SPACE_AVAILABLE, IL_DATE_ERROR_LIMIT } |
Error code to replace exception handling so that the code is compatible with all C++ compilers, and to use the same mechanism for C and C++. More... | |
Library: ilog
IlCalendar class. From IBM ICU classes, adapted for Rogue Wave Views libraries.
Copyright (C) 1997-1999, International Business Machines Corporation and others. All Rights Reserved.
#define IL_DATE_FAILURE | ( | x | ) |
Tests a IlDateErrorCode
value for failure.
1
if the value is an error, 0
otherwise #define IL_DATE_SUCCESS | ( | x | ) |
Tests a IlDateErrorCode
value for success.
1
if the value is not error, 0
otherwise enum IlDateErrorCode |
Error code to replace exception handling so that the code is compatible with all C++ compilers, and to use the same mechanism for C and C++.
Functions that take a reference (C++) or a pointer (C) to a IlDateErrorCode
first test:
So that in a chain of such functions the first one that sets an error code causes the following ones to not perform any operations.
Error codes should be tested using IL_DATE_FAILURE()
and IL_DATE_SUCCESS()
.