Ice 3.7 Slice API Reference
Loading...
Searching...
No Matches
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"]
26module Ice
27{
28
29#if !defined(__SLICE2PHP__)
39["delegate"]
40local interface ValueFactory
41{
58 ["swift:noexcept"] Value create(string type);
59}
60
70local 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}
A value factory manager maintains a collection of value factories.
Definition ValueFactory.ice:71
void add(["swift:nonnull"] ValueFactory factory, ["objc:param:sliceId"] string id)
Add a value factory.
ValueFactory find(string id)
Find an value factory registered with this communicator.
A factory for values.
Definition ValueFactory.ice:41
Value create(string type)
Create a new value for a given value type.
The Ice core library.
Definition BuiltinSequences.ice:27