OpenCores
URL https://opencores.org/ocsvn/w11/w11/trunk

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.6/] [tools/] [src/] [librtools/] [RlogFileCatalog.hpp] - Blame information for rev 40

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 19 wfjm
// $Id: RlogFileCatalog.hpp 491 2013-02-23 12:41:18Z mueller $
2
//
3
// Copyright 2011-2013 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4
//
5
// This program is free software; you may redistribute and/or modify it under
6
// the terms of the GNU General Public License as published by the Free
7
// Software Foundation, either version 2, or at your option any later version.
8
//
9
// This program is distributed in the hope that it will be useful, but
10
// WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY
11
// or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12
// for complete details.
13
// 
14
// Revision History: 
15
// Date         Rev Version  Comment
16
// 2013-02-22   491   1.0    Initial version
17
// ---------------------------------------------------------------------------
18
 
19
/*!
20
  \file
21
  \version $Id: RlogFileCatalog.hpp 491 2013-02-23 12:41:18Z mueller $
22
  \brief   Declaration of class RlogFileCatalog.
23
*/
24
 
25
#ifndef included_Retro_RlogFileCatalog
26
#define included_Retro_RlogFileCatalog 1
27
 
28
#include <map>
29
 
30
#include "boost/utility.hpp"
31
#include "boost/shared_ptr.hpp"
32
 
33
#include "RlogFile.hpp"
34
 
35
namespace Retro {
36
 
37
  class RlogFileCatalog : private boost::noncopyable {
38
    public:
39
 
40
      static RlogFileCatalog&  Obj();
41
 
42
      const boost::shared_ptr<RlogFile>& FindOrCreate(const std::string& name);
43
      void          Delete(const std::string& name);
44
 
45
    private:
46
                    RlogFileCatalog();
47
                   ~RlogFileCatalog();
48
 
49
    protected:
50
      typedef std::map<std::string, boost::shared_ptr<RlogFile>> map_t;
51
      typedef map_t::iterator         map_it_t;
52
      typedef map_t::const_iterator   map_cit_t;
53
      typedef map_t::value_type       map_val_t;
54
 
55
      map_t         fMap;                   //!< name->rlogfile map
56
  };
57
 
58
} // end namespace Retro
59
 
60
//#include "RlogFileCatalog.ipp"
61
 
62
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.