#include <opennurbs_textlog.h>
Public Member Functions | |
| ON_TextLog () | |
| ON_TextLog (FILE *fp) | |
| dump to open ASCII text file More... | |
| ON_TextLog (ON_wString &s) | |
| 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,...) |
| void ON_VARGS_FUNC_CDECL | Print (const wchar_t *format,...) |
| 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) |
| void | Print (const ON_String &string) |
| 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 () |
| printing utilities 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) |
| void | PrintString (const wchar_t *s) |
| void | PrintTime (const struct tm &) |
| void | PrintWrappedText (const char *, int=60) |
| last arg is maximum line length More... | |
| void | PrintWrappedText (const wchar_t *, int=60) |
| last arg is maximum line length More... | |
| void | PushIndent () |
| void | SetDoubleFormat (const char *) |
| default is g More... | |
| void | SetFloatFormat (const char *) |
| default is g More... | |
| void | SetIndentCount (int indent_count) |
| void | SetIndentSize (int) |
Static Public Attributes | |
| static ON_TextLog | Null |
Protected Member Functions | |
| virtual void | AppendText (const char *s) |
| virtual void | AppendText (const wchar_t *s) |
Protected Attributes | |
| FILE * | m_pFile |
| ON_wString * | m_pString |
Friends | |
| class | ON_TextHash |
/ / Copyright (c) 1993-2012 Robert McNeel & Associates. All rights reserved. / OpenNURBS, Rhinoceros, and Rhino3D are registered trademarks of Robert / McNeel & Associates. / / THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY. / ALL IMPLIED WARRANTIES OF FITNESS FOR ANY PARTICULAR PURPOSE AND OF / MERCHANTABILITY ARE HEREBY DISCLAIMED. / / For complete openNURBS copyright information see http://www.opennurbs.org. / //////////////////////////////////////////////////////////////
| ON_TextLog::ON_TextLog | ( | ) |
Description: Create a text log that dumps to the virtual function void ON_TextLog::AppendText().
| ON_TextLog::ON_TextLog | ( | FILE * | fp | ) |
dump to open ASCII text file
Description: Create a text log that dumps to an ASCII file. Parameters: 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 | ) |
Description: Create a text log that dumps to a string. Parameters: s - [in] String that must exist as long as the text log is in use.
|
virtual |
|
protectedvirtual |
Description: 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). Parameters: s - [in];
|
protectedvirtual |
Description: 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*). Parameters: s - [in];
| void ON_TextLog::GetDoubleFormat | ( | ON_String & | ) | const |
| void ON_TextLog::GetFloatFormat | ( | ON_String & | ) | const |
| int ON_TextLog::IndentCount | ( | ) |
Returns: Current indentation count
| int ON_TextLog::IndentSize | ( | ) | const |
0: one tab per indent >0: number of spaces per indent
| 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, |
| ... | |||
| ) |
Description: Print a formatted ASCII string of up to 2000 characters. Parameters: format - [in] nullptr terminated format control string Remarks: To print strings longer than 2000 characters, you must use ON_TextLog::PrintString. See Also: ON_TextLog::PrintString
| void ON_VARGS_FUNC_CDECL ON_TextLog::Print | ( | const wchar_t * | format, |
| ... | |||
| ) |
Description: Print a formatted INICODE string of up to 2000 characters. Parameters: format - [in] nullptr terminated format control string Remarks: To print strings longer than 2000 characters, you must use ON_TextLog::PrintString. See Also: 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 | ) |
Description: Print an unformatted wide char string of any length. Parameters: string - [in]
| void ON_TextLog::Print | ( | const ON_String & | string | ) |
Description: Print an unformatted UTF-8 string of any length. Parameters: 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 | ( | ) |
printing utilities
Description: Same as calling Print("\n");
| 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 | ) |
Description: Print an unformatted ASCII string of any length. Parameters: s - [in] nullptr terminated ASCII string.
| void ON_TextLog::PrintString | ( | const wchar_t * | s | ) |
Description: Print an unformatted UNICODE string of any length. Parameters: s - [in] nullptr terminated UNICODE string.
| void ON_TextLog::PrintTime | ( | const struct tm & | ) |
| void ON_TextLog::PrintWrappedText | ( | const char * | , |
| int | = 60 |
||
| ) |
last arg is maximum line length
| void ON_TextLog::PrintWrappedText | ( | const wchar_t * | , |
| int | = 60 |
||
| ) |
last arg is maximum line length
| void ON_TextLog::PushIndent | ( | ) |
| void ON_TextLog::SetDoubleFormat | ( | const char * | ) |
default is g
| void ON_TextLog::SetFloatFormat | ( | const char * | ) |
default is g
| void ON_TextLog::SetIndentCount | ( | int | indent_count | ) |
Description: Set indentation count.
| void ON_TextLog::SetIndentSize | ( | int | ) |
|
friend |
|
protected |
|
protected |
|
static |
Description: ON_TextLog::Null is a silent text log and can be used when no output is desired but an ON_TextLog parameter is required.