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

◆ newClassInstance()

ValuePtr Ice::CompositeSliceLoader::newClassInstance ( std::string_view typeId) const
nodiscardfinalvirtual

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 from Ice::SliceLoader.