BusBoy  2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SerializerRegistry.h
Go to the documentation of this file.
1 
17 #ifndef __BUSBOY_SERIALIZER_REGISTRY_H__
18 #define __BUSBOY_SERIALIZER_REGISTRY_H__
19 
20 #include <string>
21 #include "SerializerFactory.h"
22 
23 namespace BUSBOY {
24 
25 class SerializerRegistryImpl;
26 
32 
33  public:
34 
35  static SerializerRegistry& instance();
36 
37  void registerSerializerFactory(const std::string& contentType, SerializerFactory* factory);
38 
39  SerializerFactory* getSerializerFactory(const std::string& contentType) const;
40 
42 
43  private:
44 
45  SerializerRegistryImpl* m_impl;
46 
49  SerializerRegistry& operator=(const SerializerRegistry& reg);
50 
51 };
52 
53 }
54 
55 #endif

Copyright 2014 Google Inc. All rights reserved.