VR-Forces 4.0.4 Class Documentation
include/gdb/specIntAttrib.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2001 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: specIntAttrib.h,v $ $Revision: 1.8 $ $State: Exp $
00007 *********************************************************************/
00008 
00009 #ifndef specIntAttrib_H_
00010 #define specIntAttrib_H_
00011 
00012 #include "gdb/gdbDefines.h"
00013 #include <stdio.h>
00014 
00015 #include <vlutil/vlNetTypes.h>
00016 
00017 #include "gdb/specAttrib.h"
00018 
00019 // class DtSpecificationIntegerAttribute:
00020 //
00021 // DtSpecificationIntegerAttribute is the base member for attributes.
00022 
00023 class DT_DLL_gdb DtSpecificationIntegerAttribute : public DtSpecificationAttribute
00024 {
00025 public:
00026 
00027    // default constructor
00028    DtSpecificationIntegerAttribute();
00029 
00030    // destructor
00031    virtual ~DtSpecificationIntegerAttribute();
00032 
00033    // copy constructor
00034    DtSpecificationIntegerAttribute(const DtSpecificationIntegerAttribute& orig);
00035 
00036    // assignment operator
00037    DtSpecificationIntegerAttribute& operator=(const DtSpecificationIntegerAttribute& orig);
00038 
00039    // Comparison operators
00040    // ==, <, and > return false if the labels or types don't match
00041    virtual bool operator==(const DtSpecificationAttribute& other) const;
00042    virtual bool operator<(const DtSpecificationAttribute& other) const;
00043    virtual bool operator>(const DtSpecificationAttribute& other) const;
00044 
00045    // get/set integer
00046    virtual int value() const;
00047    virtual void setValue(int val);
00048 
00049    // input from file
00050    virtual bool readFrom(FILE* fp);
00051 
00052    // write to a file
00053    virtual bool writeTo(FILE* fp);
00054 
00055    // get specification
00056    virtual unsigned int type() const;
00057 
00058    // virtual constructor
00059    virtual DtSpecificationAttribute* clone() const;
00060 
00061 protected:
00062 
00063    int myInteger;
00064 
00065 };
00066 
00067 #endif

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)