59
only storing messages for the first few rows. The
getNumMessagesAtLevel() method returns the number of messages
at a specified severity level.
CNKObj::
const char* getMessage(long i);
int getMessageSeverity(long i);
The getMessage() method returns the specified message. Its
argument is an index into the list of messages with a range of
0 to
getNumMessages(). The getMessageSeverity() method returns the
severity code for this message.
CNKObj::
static char* copyString(const char* str);
static char* copyString(const char* str,
const char* str2);
static char* copyString(const char* str, int max_chars);
static char* copyString(const char* str,
const char* str2, int max_chars);
static void releaseString(char* str);
These are useful utility methods for allocating and releasing strings.
copyString allocates a string that is a copy of its argument. The
versions with two char arrays construct a string of the form
"<firstarg>: <secondarg>". The max_chars argument indicates the
maximum number of characters to copy.
releaseString releases a
string allocated by
copyString. All of these methods detect and
handle
NULL arguments correctly: copyString(NULL) just returns NULL,
and
releaseString(NULL) does nothing.
These are static class methods, so they can be used anywhere, even
outside of the CNK object classes, with calls such as
CNKObj::copyString(str).
CNKObj::
static double getDoubleNaN();
static int isDoubleNaN(double val);
static double getDoubleNA();
static int isDoubleNA(double val);
static long getLevelNumNA();
Comentários a estes Manuais