EDOBE XDOM PMML Instrukcja Użytkownika Strona 58

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 98
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 57
58
severity_warning,
severity_error };
void addError(const char* msg);
void addWarning(const char* msg);
void addInformation(const char* msg);
void addVerbose(const char* msg);
void addDebug(const char* msg);
void addMessage(const char* msg, int severity);
Each object can have a set of messages. Typically these are items such
as warning messages, debug information, or status messages. The
severity of the message can be used to determine when to display the
message. These methods are used to add messages of various types.
CNKObj::
static void setMaxMessages(long val);
static long getMaxMessages();
static void setMaxMessageLength(long val);
static long getMaxMessageLength();
To avoid memory usage problems due to an unanticipated number of
messages, the maximum number of messages to store can be set using
setMaxMessages(). Setting this to a positive number sets the
maximum number of messages that will be stored. Additional
messages will be discarded.
The maximum number of characters per message can be set with
setMaxMessageLength().
CNKObj::
long getNumMessages();
long getNumMessagesAdded();
long getNumMessagesAtLevel(int severity);
The getNumMessages() method returns the total number of messages
stored. The
getNumMessagesAdded() gets the number of messages
that have been submitted for storage. This second method will return
a larger value than the first if the number of messages submitted
exceeds
getMaxMessages(). This can be used to track something like
the total number of rows dropped due to inappropriate values, while
Przeglądanie stron 57
1 2 ... 53 54 55 56 57 58 59 60 61 62 63 ... 97 98

Komentarze do niniejszej Instrukcji

Brak uwag