VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
specificationIntegerAttribute.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2001 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: specIntAttrib.h,v $ $Revision: 1.8 $ $State: Exp $
7 *********************************************************************/
8 
9 #ifndef specificationIntegerAttribute_H_
10 #define specificationIntegerAttribute_H_
11 
12 #include "gdb/gdbDefines.h"
13 #include <stdio.h>
14 
15 #include <vlutil/vlNetTypes.h>
16 
18 
19 // class DtSpecificationIntegerAttribute:
20 //
21 // DtSpecificationIntegerAttribute is the base member for attributes.
22 
24 {
25 public:
26 
27  // default constructor
29 
30  // destructor
32 
33  // copy constructor
35 
36  // assignment operator
38 
39  // Comparison operators
40  // ==, <, and > return false if the labels or types don't match
41  virtual bool operator==(const DtSpecificationAttribute& other) const;
42  virtual bool operator<(const DtSpecificationAttribute& other) const;
43  virtual bool operator>(const DtSpecificationAttribute& other) const;
44 
45  // get/set integer
46  virtual int value() const;
47  virtual void setValue(int val);
48 
49  // input from file
50  virtual bool readFrom(FILE* fp);
51 
52  // write to a file
53  virtual bool writeTo(FILE* fp);
54 
55  // get specification
56  virtual unsigned int type() const;
57 
58  // virtual constructor
59  virtual DtSpecificationAttribute* clone() const;
60 
61 protected:
62 
63  int myInteger;
64 
65 };
66 
67 #endif
virtual bool readFrom(FILE *fp)
#define DT_DLL_gdb
Definition: gdbDefines.h:25
virtual bool operator>(const DtSpecificationAttribute &other) const
virtual DtSpecificationAttribute * clone() const =0
virtual unsigned int type() const =0
virtual bool operator<(const DtSpecificationAttribute &other) const
virtual bool writeTo(FILE *fp)
virtual bool operator==(const DtSpecificationAttribute &other) const
DtSpecificationAttribute & operator=(const DtSpecificationAttribute &orig)
Definition: specificationIntegerAttribute.h:23
int myInteger
Definition: specificationIntegerAttribute.h:63
Definition: specificationAttribute.h:23

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)