VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfExtProtocol
ifContFactory.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 1999-2001 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: ifContFactory.h,v $ $Revision: 1.7 $ $State: Exp $
7
*******************************************************************************/
8
9
//
10
// File: ifContFactory.h
11
//
12
// Class: DtInterfaceContentFactory
13
//
14
15
#ifndef DtInterfaceContentFactory_H_
16
#define DtInterfaceContentFactory_H_
17
18
#include <vlutil/vlHashlist.h>
19
#include <map>
20
21
class
DtInterfaceContentFactoryEntry
;
22
class
DtReaderWriterRegistry
;
23
class
DtSimInterfaceContent
;
24
25
typedef
DtSimInterfaceContent
* (*DtInterfaceContentCreatorFcn)();
26
27
//
28
// class DtInterfaceContentFactory:
29
//
30
// DtInterfaceContentFactory is a hashlist of DtInterfaceContentFactoryEntry,
31
// indexed by the integer type that represents the type of interface content
32
// to create.
33
//
34
35
#include <
vrfExtProtocol/vrfExtProtocolDefines.h
>
36
class
DT_DLL_vrfExtProtocol
DtInterfaceContentFactory
37
{
38
public
:
39
// constructor
40
DtInterfaceContentFactory
();
41
42
// copy constructor
43
DtInterfaceContentFactory
(
const
DtInterfaceContentFactory
& orig);
44
45
// assignment operator
46
const
DtInterfaceContentFactory
& operator=(
47
const
DtInterfaceContentFactory
& orig);
48
49
// Destructor: deletes factory and any entries on the factory.
50
virtual
~
DtInterfaceContentFactory
();
51
52
// Add a creator function to the factory.
53
virtual
void
addCreatorFcn(
const
int
type,
54
DtInterfaceContentCreatorFcn
fcn);
55
56
virtual
DtSimInterfaceContent
* createInterfaceContent(
const
int
type);
57
58
static
DtInterfaceContentFactory
* create();
59
60
public
:
65
virtual
void
addDefaultMessageFilters();
66
67
public
:
70
virtual
void
addMessageWarningFilter(
int
);
71
73
virtual
void
removeMessageWarningFilter(
int
);
74
75
protected
:
79
virtual
void
generateWarningFor(
int
type);;
80
81
protected
:
82
83
DtHashlist
myHashlist
;
84
std::map<int, bool>
myMessageWarningFilters
;
85
86
};
87
88
#endif
89
90
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)