#include <opennurbs_textlog.h>
Public Member Functions | |
ON_TextLog () | |
Create a text log that dumps to the virtual function void ON_TextLog::AppendText(). More... | |
ON_TextLog (FILE *fp) | |
Create a text log that dumps to an ASCII file. More... | |
ON_TextLog (ON_wString &s) | |
Create a text log that dumps to a string. More... | |
virtual | ~ON_TextLog () |
void | GetDoubleFormat (ON_String &) const |
void | GetFloatFormat (ON_String &) const |
int | IndentCount () |
int | IndentSize () const |
bool | IsTextHash () const |
ON_TextLog & | operator<< (const char *) |
ON_TextLog & | operator<< (char) |
ON_TextLog & | operator<< (short) |
ON_TextLog & | operator<< (int) |
ON_TextLog & | operator<< (float) |
ON_TextLog & | operator<< (double) |
ON_TextLog & | operator<< (const ON_2dPoint &) |
ON_TextLog & | operator<< (const ON_3dPoint &) |
ON_TextLog & | operator<< (const ON_4dPoint &) |
ON_TextLog & | operator<< (const ON_2dVector &) |
ON_TextLog & | operator<< (const ON_3dVector &) |
ON_TextLog & | operator<< (const ON_Xform &) |
void | PopIndent () |
void ON_VARGS_FUNC_CDECL | Print (const char *format,...) |
Print a formatted ASCII string of up to 2000 characters. More... | |
void ON_VARGS_FUNC_CDECL | Print (const wchar_t *format,...) |
Print a formatted INICODE string of up to 2000 characters. More... | |
void | Print (float) |
void | Print (double) |
void | Print (const ON_2dPoint &) |
void | Print (const ON_3dPoint &) |
void | Print (const ON_4dPoint &) |
void | Print (const ON_2dVector &) |
void | Print (const ON_3dVector &) |
void | Print (const ON_Xform &) |
void | Print (const ON_UUID &) |
void | Print (const ON_COMPONENT_INDEX &) |
void | Print (const ON_wString &string) |
Print an unformatted wide char string of any length. More... | |
void | Print (const ON_String &string) |
Print an unformatted UTF-8 string of any length. More... | |
void | Print (const ON_3dPointArray &, const char *=nullptr) |
void | Print (const ON_Matrix &, const char *=nullptr, int=0) |
void | PrintKnotVector (int, int, const double *) |
void | PrintNewLine () |
Same as calling Print("\n"); More... | |
void | PrintPointGrid (int, bool, int, int, int, int, const double *, const char *=nullptr) |
void | PrintPointList (int, bool, int, int, const double *, const char *=nullptr) |
void | PrintRGB (const ON_Color &) |
void | PrintString (const char *s) |
Print an unformatted ASCII string of any length. More... | |
void | PrintString (const wchar_t *s) |
Print an unformatted UNICODE string of any length. More... | |
void | PrintTime (const struct tm &) |
void | PrintWrappedText (const char *, int=60) |
void | PrintWrappedText (const wchar_t *, int=60) |
void | PushIndent () |
void | SetDoubleFormat (const char *) |
void | SetFloatFormat (const char *) |
void | SetIndentCount (int indent_count) |
Set indentation count. More... | |
void | SetIndentSize (int) |
Static Public Attributes | |
static ON_TextLog | Null |
ON_TextLog::Null is a silent text log and can be used when no output is desired but an ON_TextLog parameter is required. More... | |
Protected Member Functions | |
virtual void | AppendText (const char *s) |
If the ON_TextLog(ON_wString& wstr) constructor was used, the default appends s to wstr. If the ON_TextLog(FILE* fp) constructor was used, the default calls fputs( fp, s). In all other cases, the default calls printf("%s",s). More... | |
virtual void | AppendText (const wchar_t *s) |
If the ON_TextLog(ON_wString& wstr) constructor was used, the default appends s to wstr. In all other cases, the default converts the string to an ON_String and calls the ASCII version AppendText(const char*). More... | |
Protected Attributes | |
FILE * | m_pFile |
ON_wString * | m_pString |
Friends | |
class | ON_TextHash |
ON_TextLog::ON_TextLog | ( | ) |
Create a text log that dumps to the virtual function void ON_TextLog::AppendText().
ON_TextLog::ON_TextLog | ( | FILE * | fp | ) |
Create a text log that dumps to an ASCII file.
fp | [in] Pointer to an open ASCII text file. The file pointer must remain valid as long as the text log is in use. |
ON_TextLog::ON_TextLog | ( | ON_wString & | s | ) |
Create a text log that dumps to a string.
s | [in] String that must exist as long as the text log is in use. |
|
virtual |
|
protectedvirtual |
If the ON_TextLog(ON_wString& wstr) constructor was used, the default appends s to wstr. If the ON_TextLog(FILE* fp) constructor was used, the default calls fputs( fp, s). In all other cases, the default calls printf("%s",s).
s | [in]; |
|
protectedvirtual |
If the ON_TextLog(ON_wString& wstr) constructor was used, the default appends s to wstr. In all other cases, the default converts the string to an ON_String and calls the ASCII version AppendText(const char*).
s | [in]; |
void ON_TextLog::GetDoubleFormat | ( | ON_String & | ) | const |
void ON_TextLog::GetFloatFormat | ( | ON_String & | ) | const |
int ON_TextLog::IndentCount | ( | ) |
int ON_TextLog::IndentSize | ( | ) | const |
bool ON_TextLog::IsTextHash | ( | ) | const |
ON_TextLog& ON_TextLog::operator<< | ( | const char * | ) |
ON_TextLog& ON_TextLog::operator<< | ( | char | ) |
ON_TextLog& ON_TextLog::operator<< | ( | short | ) |
ON_TextLog& ON_TextLog::operator<< | ( | int | ) |
ON_TextLog& ON_TextLog::operator<< | ( | float | ) |
ON_TextLog& ON_TextLog::operator<< | ( | double | ) |
ON_TextLog& ON_TextLog::operator<< | ( | const ON_2dPoint & | ) |
ON_TextLog& ON_TextLog::operator<< | ( | const ON_3dPoint & | ) |
ON_TextLog& ON_TextLog::operator<< | ( | const ON_4dPoint & | ) |
ON_TextLog& ON_TextLog::operator<< | ( | const ON_2dVector & | ) |
ON_TextLog& ON_TextLog::operator<< | ( | const ON_3dVector & | ) |
ON_TextLog& ON_TextLog::operator<< | ( | const ON_Xform & | ) |
void ON_TextLog::PopIndent | ( | ) |
void ON_VARGS_FUNC_CDECL ON_TextLog::Print | ( | const char * | format, |
... | |||
) |
Print a formatted ASCII string of up to 2000 characters.
format | [in] nullptr terminated format control string |
To print strings longer than 2000 characters, you must use ON_TextLog::PrintString.
void ON_VARGS_FUNC_CDECL ON_TextLog::Print | ( | const wchar_t * | format, |
... | |||
) |
Print a formatted INICODE string of up to 2000 characters.
format | [in] nullptr terminated format control string |
To print strings longer than 2000 characters, you must use ON_TextLog::PrintString.
void ON_TextLog::Print | ( | float | ) |
void ON_TextLog::Print | ( | double | ) |
void ON_TextLog::Print | ( | const ON_2dPoint & | ) |
void ON_TextLog::Print | ( | const ON_3dPoint & | ) |
void ON_TextLog::Print | ( | const ON_4dPoint & | ) |
void ON_TextLog::Print | ( | const ON_2dVector & | ) |
void ON_TextLog::Print | ( | const ON_3dVector & | ) |
void ON_TextLog::Print | ( | const ON_Xform & | ) |
void ON_TextLog::Print | ( | const ON_UUID & | ) |
void ON_TextLog::Print | ( | const ON_COMPONENT_INDEX & | ) |
void ON_TextLog::Print | ( | const ON_wString & | string | ) |
Print an unformatted wide char string of any length.
string | [in] |
void ON_TextLog::Print | ( | const ON_String & | string | ) |
Print an unformatted UTF-8 string of any length.
string | [in] |
void ON_TextLog::Print | ( | const ON_3dPointArray & | , |
const char * | = nullptr |
||
) |
void ON_TextLog::Print | ( | const ON_Matrix & | , |
const char * | = nullptr , |
||
int | = 0 |
||
) |
void ON_TextLog::PrintKnotVector | ( | int | , |
int | , | ||
const double * | |||
) |
void ON_TextLog::PrintNewLine | ( | ) |
Same as calling Print("\n");
printing utilities
void ON_TextLog::PrintPointGrid | ( | int | , |
bool | , | ||
int | , | ||
int | , | ||
int | , | ||
int | , | ||
const double * | , | ||
const char * | = nullptr |
||
) |
void ON_TextLog::PrintPointList | ( | int | , |
bool | , | ||
int | , | ||
int | , | ||
const double * | , | ||
const char * | = nullptr |
||
) |
void ON_TextLog::PrintRGB | ( | const ON_Color & | ) |
void ON_TextLog::PrintString | ( | const char * | s | ) |
Print an unformatted ASCII string of any length.
s | [in] nullptr terminated ASCII string. |
void ON_TextLog::PrintString | ( | const wchar_t * | s | ) |
Print an unformatted UNICODE string of any length.
s | [in] nullptr terminated UNICODE string. |
void ON_TextLog::PrintTime | ( | const struct tm & | ) |
void ON_TextLog::PrintWrappedText | ( | const char * | , |
int | = 60 |
||
) |
void ON_TextLog::PrintWrappedText | ( | const wchar_t * | , |
int | = 60 |
||
) |
void ON_TextLog::PushIndent | ( | ) |
void ON_TextLog::SetDoubleFormat | ( | const char * | ) |
void ON_TextLog::SetFloatFormat | ( | const char * | ) |
void ON_TextLog::SetIndentCount | ( | int | indent_count | ) |
Set indentation count.
void ON_TextLog::SetIndentSize | ( | int | ) |
|
friend |
|
protected |
|
protected |
|
static |
ON_TextLog::Null is a silent text log and can be used when no output is desired but an ON_TextLog parameter is required.