VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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

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)