VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
interfaceContentFactory.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1999-2001 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 //
7 // File: ifContFactory.h
8 //
9 // Class: DtInterfaceContentFactory
10 //
11 
12 #pragma once
13 
14 #include <vlutil/vlHashlist.h>
15 #include <map>
16 
20 
21 typedef DtSimInterfaceContent* (*DtInterfaceContentCreatorFcn)();
22 
23 //
24 // class DtInterfaceContentFactory:
25 //
26 // DtInterfaceContentFactory is a hashlist of DtInterfaceContentFactoryEntry,
27 // indexed by the integer type that represents the type of interface content
28 // to create.
29 //
30 
33 {
34 public:
35  // constructor
37 
38  // copy constructor
40 
41  // assignment operator
42  const DtInterfaceContentFactory& operator=(
43  const DtInterfaceContentFactory& orig);
44 
45  // Destructor: deletes factory and any entries on the factory.
46  virtual ~DtInterfaceContentFactory();
47 
48  // Add a creator function to the factory.
49  virtual void addCreatorFcn(const int type,
51 
52  virtual DtSimInterfaceContent* createInterfaceContent(const int type);
53 
54  static DtInterfaceContentFactory* create();
55 
56 public:
61  virtual void addDefaultMessageFilters();
62 
63 public:
66  virtual void addMessageWarningFilter(int);
67 
69  virtual void removeMessageWarningFilter(int);
70 
72  virtual void setAlwaysWarnOnlyOnce(bool);
73  bool alwaysWarnOnlyOnce() const;
74 
75 protected:
79  virtual void generateWarningFor(int type);;
80 
81 protected:
82 
83  DtHashlist myHashlist;
84  std::map<int, bool> myMessageWarningFilters;
86 };
87 
88 

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)