VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
gdb
specStrAttrib.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2003 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: specStrAttrib.h,v $ $Revision: 1.7 $ $State: Exp $
7
*******************************************************************************/
8
9
#ifndef specStrAttrib_H_
10
#define specStrAttrib_H_
11
12
#include "
gdb/gdbDefines.h
"
13
#include <stdio.h>
14
#include <vlutil/vlNetTypes.h>
15
#include <vlutil/vlString.h>
16
#include "
gdb/specAttrib.h
"
17
18
// class DtSpecificationStringAttribute:
19
//
20
// DtSpecificationStringAttribute holds a string attribute.
21
22
class
DT_DLL_gdb
DtSpecificationStringAttribute
:
public
DtSpecificationAttribute
23
{
24
public
:
25
26
// default constructor
27
DtSpecificationStringAttribute
();
28
29
// destructor
30
virtual
~
DtSpecificationStringAttribute
();
31
32
// copy constructor
33
DtSpecificationStringAttribute
(
const
DtSpecificationStringAttribute
& orig);
34
35
// assignment operator
36
DtSpecificationStringAttribute
&
operator=
(
const
DtSpecificationStringAttribute
& orig);
37
38
// Comparison operators
39
// ==, <, and > return false if the labels or types don't match
40
virtual
bool
operator==
(
const
DtSpecificationAttribute
& other)
const
;
41
virtual
bool
operator<
(
const
DtSpecificationAttribute
& other)
const
;
42
virtual
bool
operator>
(
const
DtSpecificationAttribute
& other)
const
;
43
44
// get/set string
45
virtual
const
DtString
& value()
const
;
46
virtual
void
setValue(
const
DtString
& val);
47
48
// input from file
49
virtual
bool
readFrom
(FILE* fp);
50
51
// write to a file
52
virtual
bool
writeTo
(FILE* fp);
53
54
// get specification
55
virtual
unsigned
int
type
()
const
;
56
57
// virtual constructor
58
virtual
DtSpecificationAttribute
*
clone
()
const
;
59
60
protected
:
61
62
DtString
myString
;
63
64
};
65
66
#endif
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
)