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

Subversion Repositories w11

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

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

Line No. Rev Author Line
1 22 wfjm
// $Id: RtclNameSet.hpp 521 2013-05-20 22:16:45Z mueller $
2 10 wfjm
//
3 22 wfjm
// Copyright 2011-2013 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4 10 wfjm
//
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 22 wfjm
// 2013-05-19   521   1.1    add CheckMatch()
17 10 wfjm
// 2011-02-20   363   1.0    Initial version
18
// ---------------------------------------------------------------------------
19
 
20
 
21
/*!
22
  \file
23 22 wfjm
  \version $Id: RtclNameSet.hpp 521 2013-05-20 22:16:45Z mueller $
24 10 wfjm
  \brief   Declaration of class RtclNameSet.
25
*/
26
 
27
#ifndef included_Retro_RtclNameSet
28
#define included_Retro_RtclNameSet 1
29
 
30
#include "tcl.h"
31
 
32
#include <string>
33
#include <set>
34
 
35
#include "RtclNameSet.hpp"
36
 
37
namespace Retro {
38
 
39
  class RtclNameSet {
40
    public:
41
      typedef std::set<std::string>   nset_t;
42
      typedef nset_t::iterator        nset_it_t;
43
      typedef nset_t::const_iterator  nset_cit_t;
44
 
45
                        RtclNameSet();
46
                        RtclNameSet(const std::string& nset);
47 22 wfjm
                       ~RtclNameSet();
48 10 wfjm
 
49
    bool                Check(Tcl_Interp* interp, std::string& rval,
50
                              const std::string& tval) const;
51 22 wfjm
    int                 CheckMatch(Tcl_Interp* interp, std::string& rval,
52
                                   const std::string& tval, bool misserr) const;
53 10 wfjm
 
54
    protected:
55
      nset_t            fSet;
56
  };
57
 
58
} // end namespace Retro
59
 
60 19 wfjm
//#include "RtclNameSet.ipp"
61 10 wfjm
 
62
#endif

powered by: WebSVN 2.1.0

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