summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/ValueFactoryManager.h
blob: 1246b866477082b431bffff9b4f18fcc9e6c1e2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// **********************************************************************
//
// Copyright (c) 2002
// MutableRealms, Inc.
// Huntsville, AL, USA
//
// All Rights Reserved
//
// **********************************************************************

#ifndef ICE_VALUE_FACTORY_MANAGER_H
#define ICE_VALUE_FACTORY_MANAGER_H

#include <Ice/ValueFactoryManagerF.h>
#include <Ice/ValueFactoryF.h>
#include <Ice/Shared.h>
#include <map>

namespace IceInternal
{

class ValueFactoryManager : public Shared, public JTCMutex
{
public:

    void install(const ::Ice::ValueFactoryPtr&, const std::string&);
    ::Ice::ValueFactoryPtr lookup(const std::string&);

private:

    ValueFactoryManager();
    void destroy();
    friend class Instance;

    std::map<std::string, ::Ice::ValueFactoryPtr> _factories;
};

}

#endif