ON_TextHash Class Reference

#include <opennurbs_textlog.h>

Inheritance diagram for ON_TextHash:
ON_TextLog

Public Member Functions

 ON_TextHash ()=default
 
 ~ON_TextHash ()=default
 
ON__UINT64 ByteCount () const
 
ON_SHA1_Hash Hash () const
 
bool IdRemap () const
 
ON_TextLogOutputTextLog () const
 
void SetIdRemap (bool bEnableIdRemap)
 
void SetOutputTextLog (ON_TextLog *output_text_log)
 In some testing situations, the output text log can be set when it is necessary to see the text used to compute the SHA-1 hash. The has can be caluculate which no output text log. More...
 
void SetStringMap (const class ON_Locale &locale, ON_StringMapType map_type)
 
void SetStringMap (ON_StringMapOrdinalType map_type)
 
const class ON_LocaleStringMapLocale () const
 
ON_StringMapType StringMapType () const
 
- Public Member Functions inherited from ON_TextLog
 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_TextLogoperator<< (const char *)
 
ON_TextLogoperator<< (char)
 
ON_TextLogoperator<< (short)
 
ON_TextLogoperator<< (int)
 
ON_TextLogoperator<< (float)
 
ON_TextLogoperator<< (double)
 
ON_TextLogoperator<< (const ON_2dPoint &)
 
ON_TextLogoperator<< (const ON_3dPoint &)
 
ON_TextLogoperator<< (const ON_4dPoint &)
 
ON_TextLogoperator<< (const ON_2dVector &)
 
ON_TextLogoperator<< (const ON_3dVector &)
 
ON_TextLogoperator<< (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)
 

Additional Inherited Members

- Static Public Attributes inherited from ON_TextLog
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 Attributes inherited from ON_TextLog
FILE * m_pFile
 
ON_wStringm_pString
 

Constructor & Destructor Documentation

◆ ON_TextHash()

ON_TextHash::ON_TextHash ( )
default

◆ ~ON_TextHash()

ON_TextHash::~ON_TextHash ( )
default

Member Function Documentation

◆ ByteCount()

ON__UINT64 ON_TextHash::ByteCount ( ) const
Returns
Total number of bytes that have passed through this text log.

◆ Hash()

ON_SHA1_Hash ON_TextHash::Hash ( ) const
Returns
SHA-1 hash value of the text sent to this text log.

◆ IdRemap()

bool ON_TextHash::IdRemap ( ) const
Returns
True if id remap is available.

◆ OutputTextLog()

ON_TextLog* ON_TextHash::OutputTextLog ( ) const

◆ SetIdRemap()

void ON_TextHash::SetIdRemap ( bool  bEnableIdRemap)
Parameters
bEnableIdRemap[in] if bEnableIdRemap is true, the sequences of code points that match the format
XXXXXXXXXXXX-XXXX-XXXX-XXXXXXXXXXXX where X is a hexadecimal digit (0-9, a-f, or A-F) and the hyphen is literal. will be replaced with an id created by ON_NextNotUniqueId(). This is used for comparing code that generates streams containg new uuids.

◆ SetOutputTextLog()

void ON_TextHash::SetOutputTextLog ( ON_TextLog output_text_log)

In some testing situations, the output text log can be set when it is necessary to see the text used to compute the SHA-1 hash. The has can be caluculate which no output text log.

Parameters
output_text_log[in] Destination text log for the mtext used to calculate the hash.

◆ SetStringMap() [1/2]

void ON_TextHash::SetStringMap ( const class ON_Locale locale,
ON_StringMapType  map_type 
)

◆ SetStringMap() [2/2]

void ON_TextHash::SetStringMap ( ON_StringMapOrdinalType  map_type)

◆ StringMapLocale()

const class ON_Locale& ON_TextHash::StringMapLocale ( ) const

◆ StringMapType()

ON_StringMapType ON_TextHash::StringMapType ( ) const