Scopira  20080306
viewtype.h
1 
2 /*
3  * Copyright (c) 2005 National Research Council
4  *
5  * All rights reserved.
6  *
7  * This material is confidential and proprietary information of
8  * National Research Council Canada ("Confidential Information").
9  * This Confidential Information may only be used and reproduced
10  * in accordance with the terms of the license agreement.
11  *
12  */
13 
14 #ifndef __INCLUDED_SCOPIRA_CORE_VIEWTYPE_H__
15 #define __INCLUDED_SCOPIRA_CORE_VIEWTYPE_H__
16 
17 #include <scopira/core/objecttype.h>
18 #include <scopira/tool/export.h>
19 
20 // implementation for all of this is in objecttype.cpp....
21 
22 namespace scopira
23 {
24  namespace core
25  {
26  class viewtype;
27  }
28 }
29 
36 {
37  private:
38  std::string dm_menuname;
39  objecttype * dm_modeltype;
40  int dm_vgmask;
41 
42  public:
44  SCOPIRA_EXPORT viewtype(const std::string &name, copyfunc_t cp, const std::string &menuname, int vgmask);
45 
47  SCOPIRA_EXPORT void set_modeltype(objecttype *mt);
49  objecttype * get_modeltype(void) const { return dm_modeltype; }
50 
52  const std::string &get_menuname(void) const { return dm_menuname; }
53 
54  int get_vgmask(void) const { return dm_vgmask; }
55 
56  protected:
57  virtual void print_tree_this(int indent);
58 };
59 
60 #endif
61 
void set_modeltype(objecttype *mt)
sets the model type
Definition: objecttype.h:38
Definition: archiveflow.h:20
const std::string & get_menuname(void) const
gets the user-displayable menu name
Definition: viewtype.h:52
viewtype(const std::string &name, copyfunc_t cp, const std::string &menuname, int vgmask)
ctor
Definition: viewtype.h:35
objecttype * get_modeltype(void) const
gets the model type
Definition: viewtype.h:49
virtual void print_tree_this(int indent)
internal