Functions
sdf::SDF_VERSION_NAMESPACE::internal Namespace Reference

Internal namespace. More...

Functions

GZ_SDFORMAT_VISIBLE const std::string & SdfScopeDelimiter ()
 Initializes the scope delimiter as a function-local static variable so it can be used to initialize kSdfScopeDelimiter. More...
 
void GZ_SDFORMAT_VISIBLE throwOrPrintError (sdf::Console::ConsoleStream &_out, const sdf::Error &_error)
 Prints the error to _out or throw using SDF_ASSERT depending on the ErrorCode in _error. More...
 

Detailed Description

Internal namespace.

Functions and classes defined in this namespace are for internal use only and maybe removed without a deprecation cycle.

Function Documentation

◆ SdfScopeDelimiter()

GZ_SDFORMAT_VISIBLE const std::string& sdf::SDF_VERSION_NAMESPACE::internal::SdfScopeDelimiter ( )

Initializes the scope delimiter as a function-local static variable so it can be used to initialize kSdfScopeDelimiter.

Note
This should not be used directly in user code. It will likely be removed in libsdformat 15 with kSdfScopeDelimiter.

◆ throwOrPrintError()

void GZ_SDFORMAT_VISIBLE sdf::SDF_VERSION_NAMESPACE::internal::throwOrPrintError ( sdf::Console::ConsoleStream &  _out,
const sdf::Error _error 
)

Prints the error to _out or throw using SDF_ASSERT depending on the ErrorCode in _error.

Parameters
[out]_outostream to use for printing errors.
[in]_error_error The error object to be printed

Referenced by sdf::SDF_VERSION_NAMESPACE::Element::Get(), and sdf::SDF_VERSION_NAMESPACE::Element::Set().