FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

IOstream::versionNumber Class Reference

Version number type. More...

#include <src/OpenFOAM/db/IOstreams/IOstreams/IOstream.H>


Detailed Description

Version number type.

Definition at line 101 of file IOstream.H.

List of all members.

Public Member Functions

 versionNumber (const scalar num)
 Construct from number.
 versionNumber (Istream &is)
 Construct from Istream.
int  numberToIndex (const scalar num) const
 Convert a version number into an index.
int  majorVersion () const
 Return major version.
int  minorVersion () const
 Return minor version.
string  str () const
 Return the versionNumber as a character string.
bool  operator== (const versionNumber &vn)
 Are these versionNumbers the same?
bool  operator!= (const versionNumber &vn)
 Are these versionNumbers different?
bool  operator< (const versionNumber &vn)
 Is this version older than the one given.
bool  operator<= (const versionNumber &vn)
 Is this version the same as or older than the one given.
bool  operator> (const versionNumber &vn)
 Is this version newer than the one given.
bool  operator>= (const versionNumber &vn)
 this version the same as or newer than the one given

Friends

Ostream &  operator<< (Ostream &os, const versionNumber &vn)
 Ostream operator.

Constructor & Destructor Documentation

versionNumber ( const scalar   num  ) [inline]

Construct from number.

Definition at line 115 of file IOstream.H.

versionNumber ( Istream &   is  ) [inline]

Construct from Istream.

Definition at line 122 of file IOstream.H.


Member Function Documentation

int numberToIndex ( const scalar   num  ) const [inline]

Convert a version number into an index.

Definition at line 132 of file IOstream.H.

int majorVersion (  ) const [inline]

Return major version.

Definition at line 138 of file IOstream.H.

Referenced by IOstream::versionNumber::minorVersion().

int minorVersion (  ) const [inline]

Return minor version.

Definition at line 144 of file IOstream.H.

References IOstream::versionNumber::majorVersion().

Foam::string str (  ) const

Return the versionNumber as a character string.

Definition at line 114 of file IOstream.C.

References Foam::fixed().

Referenced by Foam::operator<<().

bool operator== ( const versionNumber &   vn  ) [inline]

Are these versionNumbers the same?

Definition at line 156 of file IOstream.H.

bool operator!= ( const versionNumber &   vn  ) [inline]

Are these versionNumbers different?

Definition at line 162 of file IOstream.H.

bool operator< ( const versionNumber &   vn  ) [inline]

Is this version older than the one given.

Definition at line 168 of file IOstream.H.

bool operator<= ( const versionNumber &   vn  ) [inline]

Is this version the same as or older than the one given.

Definition at line 174 of file IOstream.H.

bool operator> ( const versionNumber &   vn  ) [inline]

Is this version newer than the one given.

Definition at line 180 of file IOstream.H.

bool operator>= ( const versionNumber &   vn  ) [inline]

this version the same as or newer than the one given

Definition at line 186 of file IOstream.H.


Friends And Related Function Documentation

Ostream& operator<< ( Ostream &   os,
const versionNumber &   vn  
) [friend]

Ostream operator.


The documentation for this class was generated from the following files: