w11 - cpp 0.794
Backend server for Rlink and w11
Loading...
Searching...
No Matches
RlogFileCatalog.hpp
Go to the documentation of this file.
1// $Id: RlogFileCatalog.hpp 1186 2019-07-12 17:49:59Z mueller $
2// SPDX-License-Identifier: GPL-3.0-or-later
3// Copyright 2011-2018 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4//
5// Revision History:
6// Date Rev Version Comment
7// 2018-12-16 1084 1.0.2 use =delete for noncopyable instead of boost
8// 2018-12-07 1078 1.0.1 use std::shared_ptr instead of boost
9// 2013-02-22 491 1.0 Initial version
10// ---------------------------------------------------------------------------
11
16#ifndef included_Retro_RlogFileCatalog
17#define included_Retro_RlogFileCatalog 1
18
19#include <map>
20#include <memory>
21
22#include "RlogFile.hpp"
23
24namespace Retro {
25
27 public:
28
29 static RlogFileCatalog& Obj();
30
31 const std::shared_ptr<RlogFile>& FindOrCreate(const std::string& name);
32 void Delete(const std::string& name);
33
34 private:
37
38 RlogFileCatalog(const RlogFileCatalog&) = delete; // noncopy
39 RlogFileCatalog& operator=(const RlogFileCatalog&) = delete; // noncopy
40
41 protected:
42 typedef std::map<std::string, std::shared_ptr<RlogFile>> map_t;
43
45 };
46
47} // end namespace Retro
48
49//#include "RlogFileCatalog.ipp"
50
51#endif
RlogFileCatalog(const RlogFileCatalog &)=delete
map_t fMap
name->rlogfile map
RlogFileCatalog & operator=(const RlogFileCatalog &)=delete
void Delete(const std::string &name)
FIXME_docs.
RlogFileCatalog()
Default constructor.
std::map< std::string, std::shared_ptr< RlogFile > > map_t
const std::shared_ptr< RlogFile > & FindOrCreate(const std::string &name)
FIXME_docs.
static RlogFileCatalog & Obj()
FIXME_docs.
Declaration of class ReventLoop.
Definition: ReventLoop.cpp:47