Ice 3.7 Slice API Reference
ValueFactory.ice
Go to the documentation of this file.
1 //
2 // Copyright (c) ZeroC, Inc. All rights reserved.
3 //
4 
5 #pragma once
6 
7 [["cpp:dll-export:ICE_API"]]
8 [["cpp:doxygen:include:Ice/Ice.h"]]
9 [["cpp:header-ext:h"]]
10 
11 [["ice-prefix"]]
12 
13 [["js:module:ice"]]
14 [["js:cjs-module"]]
15 
16 [["objc:dll-export:ICE_API"]]
17 [["objc:header-dir:objc"]]
18 
19 [["python:pkgdir:Ice"]]
20 
21 #ifndef __SLICE2JAVA_COMPAT__
22 [["java:package:com.zeroc"]]
23 #endif
24 
25 ["objc:prefix:ICE"]
26 module Ice
27 {
28 
29 #if !defined(__SLICE2PHP__)
30 
39 ["delegate"]
40 local interface ValueFactory
41 {
58  ["swift:noexcept"] Value create(string type);
59 }
60 
70 local interface ValueFactoryManager
71 {
116  void add(["swift:nonnull"] ValueFactory factory, ["objc:param:sliceId"] string id);
117 
129  ["cpp:const", "cpp:noexcept", "swift:noexcept"] ValueFactory find(string id);
130 }
131 #endif
132 
133 }
Ice::ValueFactory::create
Value create(string type)
Create a new value for a given value type.
Ice::ValueFactoryManager::find
ValueFactory find(string id)
Find an value factory registered with this communicator.
Ice
The Ice core library.
Definition: BuiltinSequences.ice:27
Ice::ValueFactoryManager::add
void add(["swift:nonnull"] ValueFactory factory, ["objc:param:sliceId"] string id)
Add a value factory.
Ice::ValueFactoryManager
A value factory manager maintains a collection of value factories.
Definition: ValueFactory.ice:71
Ice::ValueFactory
A factory for values.
Definition: ValueFactory.ice:41