VR-Forces 4.7 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
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
19
// class DtSpecificationAttribute:
20
//
21
// DtSpecificationAttribute is the base member for attributes.
22
23
class
DT_DLL_gdb
DtSpecificationAttribute
24
{
25
public
:
26
27
// SEDRIS enumerations for type
28
enum
DtSedrisType
29
{
30
ENUMERATION
,
31
LOGICAL
,
32
NULLVALUE
,
33
STRING
,
34
KEY
,
35
INDEX
,
36
COUNT
,
37
INTEGER
,
38
REAL
39
};
40
41
// default constructor
42
DtSpecificationAttribute
();
43
44
// destructor
45
virtual
~
DtSpecificationAttribute
();
46
47
// copy constructor
48
DtSpecificationAttribute
(
const
DtSpecificationAttribute
& orig);
49
50
// assignment operator
51
DtSpecificationAttribute
& operator=(
const
DtSpecificationAttribute
& orig);
52
53
// Comparison operators
54
// ==, <, and > return false if the labels or types don't match
55
// != returns true if the labels or types don't match
56
virtual
bool
operator==
(
const
DtSpecificationAttribute
& other)
const
;
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
61
// get/set label
62
virtual
DtString
label()
const
;
63
64
virtual
void
setLabel(
const
DtString
& label);
65
66
// input from file
67
virtual
bool
readFrom(FILE* fp);
68
69
// write to a file
70
virtual
bool
writeTo(FILE* fp);
71
72
// get specification
73
virtual
unsigned
int
type()
const
=0;
74
75
// virtual constructor
76
virtual
DtSpecificationAttribute
* clone()
const
=0;
77
78
private
:
79
DtString
myLabel
;
80
};
81
82
#endif
Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)