Ice 3.7 Slice API Reference
All Classes Interfaces Structs Exceptions Modules Files Operations Constants Sequences Dictionaries Enumerations Enumerator Pages
Operations | List of all members
Ice::ValueFactory Local Interface Reference

A factory for values. More...

defined in <Ice/ValueFactory.ice>

["delegate"]
local interface ValueFactory { ... }

Operations

Value create (string type)
 Create a new value for a given value type. More...
 

Detailed Description

A factory for values.

Value factories are used in several places, such as when Ice receives a class instance and when Freeze restores a persistent value. Value factories must be implemented by the application writer and registered with the communicator.

Operation Documentation

◆ create()

["swift:noexcept"]
Value create ( string  type)

Create a new value for a given value type.

The type is the absolute Slice type id, i.e., the id relative to the unnamed top-level Slice module. For example, the absolute Slice type id for an interface Bar in the module Foo is "::Foo::Bar".

Note that the leading "<code>::</code>" is required.

Parameters
typeThe value type.
Returns
The value created for the given type, or nil if the factory is unable to create the value.

The documentation for this interface was generated from the following file: