VR-Forces 4.5 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
gdb
specificationAttribute.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2003 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: specAttrib.h,v $ $Revision: 1.12 $ $State: Exp $
7
*******************************************************************************/
8
9
#ifndef specificationAttribute_H_
10
#define specificationAttribute_H_
11
12
#include "
gdb/gdbDefines.h
"
13
#include <stdio.h>
14
15
#include <vlutil/vlNetTypes.h>
16
17
#include <vlutil/vlString.h>
18
#include "
tdbutil/symbolString.h
"
19
20
// class DtSpecificationAttribute:
21
//
22
// DtSpecificationAttribute is the base member for attributes.
23
24
class
DT_DLL_gdb
DtSpecificationAttribute
25
{
26
public
:
27
28
// SEDRIS enumerations for type
29
enum
DtSedrisType
30
{
31
ENUMERATION
,
32
LOGICAL
,
33
NULLVALUE
,
34
STRING
,
35
KEY
,
36
INDEX
,
37
COUNT
,
38
INTEGER
,
39
REAL
40
};
41
42
// default constructor
43
DtSpecificationAttribute
();
44
45
// destructor
46
virtual
~
DtSpecificationAttribute
();
47
48
// copy constructor
49
DtSpecificationAttribute
(
const
DtSpecificationAttribute
& orig);
50
51
// assignment operator
52
DtSpecificationAttribute
& operator=(
const
DtSpecificationAttribute
& orig);
53
54
// Comparison operators
55
// ==, <, and > return false if the labels or types don't match
56
// != returns true if the labels or types don't match
57
virtual
bool
operator==
(
const
DtSpecificationAttribute
& other)
const
;
58
virtual
bool
operator!=
(
const
DtSpecificationAttribute
& other)
const
;
59
virtual
bool
operator<(
const
DtSpecificationAttribute
& other)
const
;
60
virtual
bool
operator>
(
const
DtSpecificationAttribute
& other)
const
;
61
62
// get/set label
63
virtual
DtSymbolString
label()
const
;
64
65
virtual
void
setLabel(
const
DtString
& label);
66
virtual
void
setLabel(
DtSymbolString
label);
67
68
// input from file
69
virtual
bool
readFrom(FILE* fp);
70
71
// write to a file
72
virtual
bool
writeTo(FILE* fp);
73
74
// get specification
75
virtual
unsigned
int
type()
const
=0;
76
77
// virtual constructor
78
virtual
DtSpecificationAttribute
* clone()
const
=0;
79
80
private
:
81
DtSymbolString
myLabel
;
82
};
83
84
#endif
Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (
www.mak.com
)