5#ifndef ICE_DEFAULT_VALUE_FACTORY_H
6#define ICE_DEFAULT_VALUE_FACTORY_H
14#ifdef ICE_CPP11_MAPPING
17::std::shared_ptr<::Ice::Value>
19defaultValueFactory(
const std::string&)
21defaultValueFactory(
const std::string& typeId)
24 assert(typeId == V::ice_staticId());
25 return std::make_shared<V>();
35 DefaultValueFactory(const ::std::string& typeId) :
41 virtual ::Ice::ObjectPtr create(const ::std::string& typeId)
43 virtual ::Ice::ObjectPtr create(const ::std::string&)
46 assert(typeId == _typeId);
51 const ::std::string _typeId;
::std::function<::std::shared_ptr< Value >(const ::std::string &type)> ValueFactory
Create a new value for a given value type.
Definition ValueFactory.h:77