Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches

◆ newClassInstance()

virtual ValuePtr Ice::SliceLoader::newClassInstance ( std::string_view typeId) const
nodiscardvirtual

Creates an instance of a class mapped from a Slice class based on a Slice type ID.

Parameters
typeIdThe Slice type ID or compact type ID.
Returns
A new instance of the class identified by typeId, or nullptr if the implementation cannot find the corresponding class.
Exceptions
MarshalExceptionThrown when the corresponding class was found but its instantiation failed.

Reimplemented in Ice::CompositeSliceLoader.