VR-Forces 5.0.2 Developer's Guide
 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 
bool myAlwaysWarnOnlyOnce
Definition: interfaceContentFactory.h:85
DtHashlist myHashlist
Definition: interfaceContentFactory.h:79
Definition: readerWriterRegistry.h:39
DtSimInterfaceContent *(* DtInterfaceContentCreatorFcn)()
Definition: interfaceContentFactory.h:21
Definition: interfaceContentFactory.h:32
#define DT_DLL_vrfExtProtocol
Definition: vrfExtProtocolDefines.h:23
Definition: simInterfaceContent.h:45
Definition: interfaceContentFactoryEntry.h:27
std::map< int, bool > myMessageWarningFilters
Definition: interfaceContentFactory.h:84

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)