Home Hierarchy Members Alphabetical Related Pages

sfint32.h

Go to the documentation of this file.
00001 #ifndef XDKWRL_SFINT32_H
00002 #define XDKWRL_SFINT32_H
00003 
00004 #include <xdkwrl/config.h>
00005 #include <xdkwrl/fieldtypes.h>
00006 #include <iostream>
00007 
00008 namespace wrl
00009 {
00010   //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
00011   // Interface of SFInt32
00012   //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
00013   /*! \ingroup fieldtypes
00014    *
00015    * Represents an integer value. Below is included the documentation for
00016    * this field type from the ISO standard.   
00017    * \htmlinclude sfint32.html
00018    */
00019   class XDKWRL_EXPORT SFInt32 
00020   {
00021   public:
00022     inline SFInt32();
00023     inline SFInt32(const int b);
00024     inline SFInt32& operator=(const int b);
00025     inline SFInt32& operator=(const SFInt32 b);
00026     inline operator int() const;
00027     inline int operator==(const SFInt32& b);
00028     static inline const char* typeName();
00029     static inline FieldTypeId typeId();
00030     friend std::ostream& operator<<(std::ostream& s,const SFInt32& f);
00031   protected:
00032   private:
00033     int value_;
00034   };
00035   //************************************************************
00036   // Implementation of SFInt32
00037   //************************************************************
00038   /*!
00039    * Creates a SFInt32 with default value 0.0f. 
00040    */
00041   inline
00042   SFInt32::SFInt32()
00043     : value_(0)
00044   {
00045   }
00046   /*!
00047    * Creates a SFInt32 with value \p b.
00048    */
00049   inline
00050   SFInt32::SFInt32(const int b)
00051     : value_(b)
00052   {
00053   } 
00054   inline SFInt32&
00055   SFInt32::operator=(const int b)
00056   {
00057     value_ = b;
00058     return *this;
00059   }
00060   inline SFInt32&
00061   SFInt32::operator=(const SFInt32 b)
00062   {
00063     value_ = b.value_;
00064     return *this;
00065   }
00066   inline
00067   SFInt32::operator int() const
00068   {
00069     return value_;
00070   }
00071   inline int
00072   SFInt32::operator==(const SFInt32& b)
00073   {
00074     return value_ == b.value_;
00075   }
00076   inline const char*
00077   SFInt32::typeName()
00078   {
00079     return "SFInt32";
00080   }
00081   inline FieldTypeId
00082   SFInt32::typeId()
00083   {
00084     return sfInt32;
00085   }  
00086 };
00087 
00088 #endif // XDKWRL_SFINT32_H

Generated on 5 Jan 2007 with doxygen version 1.5.1. Valid HTML 4.0! Valid CSS!