CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CacheParser.h
Go to the documentation of this file.
1 #ifndef FWCore_PluginManager_CacheParser_h
2 #define FWCore_PluginManager_CacheParser_h
3 // -*- C++ -*-
4 //
5 // Package: PluginManager
6 // Class : CacheParser
7 //
21 //
22 // Original Author: Chris Jones
23 // Created: Wed Apr 4 14:30:51 EDT 2007
24 // $Id: CacheParser.h,v 1.3 2007/06/14 02:52:57 wmtan Exp $
25 //
26 
27 // system include files
28 #include <iosfwd>
29 #include <string>
30 #include <map>
31 #include <vector>
32 #include <boost/filesystem/path.hpp>
33 
34 // user include files
36 
37 // forward declarations
38 namespace edmplugin {
40 {
41 
42  public:
43  typedef std::map<std::string, std::vector<PluginInfo> > CategoryToInfos;
44  typedef std::pair< std::string, std::string> NameAndType;
45  typedef std::vector< NameAndType > NameAndTypes;
46  typedef std::map<boost::filesystem::path, NameAndTypes > LoadableToPlugins;
47 
48  // ---------- const member functions ---------------------
49 
50  // ---------- static member functions --------------------
51 
52  // ---------- member functions ---------------------------
57  static void read(std::istream&, const boost::filesystem::path& iDirectory, CategoryToInfos& oOut);
58  static void write(const CategoryToInfos&, std::ostream&);
59 
60  static void read(std::istream&, LoadableToPlugins& oOut);
61  static void write(LoadableToPlugins& iIn, std::ostream&);
62  private:
63  CacheParser(const CacheParser&); // stop default
64 
65  const CacheParser& operator=(const CacheParser&); // stop default
66 
67  static bool readline(std::istream& iIn, const boost::filesystem::path& iDirectory,
68  unsigned long iRecordNumber, PluginInfo &oInfo, std::string& oPluginType);
69  static std::string& replaceSpaces(std::string& io);
70  static std::string& restoreSpaces(std::string& io);
71 
72  // ---------- member data --------------------------------
73 
74 };
75 
76 }
77 #endif
static std::string & restoreSpaces(std::string &io)
Definition: CacheParser.cc:226
std::pair< std::string, std::string > NameAndType
Definition: CacheParser.h:44
std::map< std::string, std::vector< PluginInfo > > CategoryToInfos
Definition: CacheParser.h:43
static bool readline(std::istream &iIn, const boost::filesystem::path &iDirectory, unsigned long iRecordNumber, PluginInfo &oInfo, std::string &oPluginType)
Definition: CacheParser.cc:86
std::map< boost::filesystem::path, NameAndTypes > LoadableToPlugins
Definition: CacheParser.h:46
list path
Definition: scaleCards.py:51
std::vector< NameAndType > NameAndTypes
Definition: CacheParser.h:45
static void write(const CategoryToInfos &, std::ostream &)
Definition: CacheParser.cc:152
const CacheParser & operator=(const CacheParser &)
CacheParser(const CacheParser &)
static std::string & replaceSpaces(std::string &io)
Definition: CacheParser.cc:217
static void read(std::istream &, const boost::filesystem::path &iDirectory, CategoryToInfos &oOut)
Definition: CacheParser.cc:126