API Reference > Other Classes > OdGUID Class > OdGUID Methods > OdGUID::toString Method
OdGUID::toString Method
Syntax
C++
OdString toString(const StringFormat::Enum format = StringFormat::Hyphenses) const;
Parameters 
Description 
const StringFormat::Enum format = StringFormat::Hyphenses 
[in] A single format specifier that indicates how to format the value of this OdGUID. Default value is OdGUID::StringFormat::Hyphenses. 

Returns string representation for this OdGUID. 

 

The following table shows the accepted format specifiers for the format parameter. "0" represents a digit; hyphens ("-"), braces ("{", "}"), and parentheses ("(", ")") appear as shown. 

OdGUID::StringFormat::Digits: 00000000000000000000000000000000 OdGUID::StringFormat::Hyphenses: 00000000-0000-0000-0000-000000000000 OdGUID::StringFormat::Braces: {00000000-0000-0000-0000-000000000000} OdGUID::StringFormat::Parentheses: (00000000-0000-0000-0000-000000000000) OdGUID::StringFormat::Extended: {0x00000000,0x0000,0x0000,{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}}

Copyright © 2002–2020. Open Design Alliance. All rights reserved.