casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Name2Table.h
Go to the documentation of this file.
1 
2 #ifndef _NAME2TABLE_H_
3 #define _NAME2TABLE_H_
4 /*
5  * ALMA - Atacama Large Millimeter Array
6  * (c) European Southern Observatory, 2002
7  * (c) Associated Universities Inc., 2002
8  * Copyright by ESO (in the framework of the ALMA collaboration),
9  * Copyright by AUI (in the framework of the ALMA collaboration),
10  * All rights reserved.
11  *
12  * This library is free software; you can redistribute it and/or
13  * modify it under the terms of the GNU Lesser General Public
14  * License as published by the Free software Foundation; either
15  * version 2.1 of the License, or (at your option) any later version.
16  *
17  * This library is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY, without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20  * Lesser General Public License for more details.
21  *
22  * You should have received a copy of the GNU Lesser General Public
23  * License along with this library; if not, write to the Free Software
24  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
25  * MA 02111-1307 USA
26  *
27  * Warning!
28  * --------------------------------------------------------------------
29  * | This is generated code! Do not modify this file. |
30  * | If you do, all changes will be lost when the file is re-generated. |
31  * --------------------------------------------------------------------
32  *
33  * File Name2Table.h
34  */
36 
37 #include <map>
38 #include <set>
39 
40 namespace asdm {
41 
42  class Name2Table {
43  private:
44  static std::map<std::string, ASDM_TABLE_BASE*> name2Table_;
45  static bool init_;
46  static bool init();
47 
48  static std::set<ASDM_TABLE_BASE*> table_;
49 
50  public:
51  static const std::set<ASDM_TABLE_BASE*>& find(const std::vector<std::string>& name,bool verbose=false);
52  };
53 } // end namespace asdm
54 
55 #endif // _NAME2TABLE_H_
ABSTRACT CLASSES Abstract class for colors Any implementation of color should be able to provide a hexadecimal form of the if a human readable name(i.e."black").In many places throughout the plotter
static std::map< std::string, ASDM_TABLE_BASE * > name2Table_
Definition: Name2Table.h:44
static const std::set< ASDM_TABLE_BASE * > & find(const std::vector< std::string > &name, bool verbose=false)
static bool init()
static bool init_
Definition: Name2Table.h:45
static std::set< ASDM_TABLE_BASE * > table_
Definition: Name2Table.h:48