casacore
Public Member Functions | Protected Attributes | Friends | List of all members
casacore::FitsLogical Class Reference

FITS helper class. More...

#include <fits.h>

Public Member Functions

 FitsLogical ()
 
 FitsLogical (Bool x)
 
 FitsLogical (const FitsLogical &x)
 
FitsLogicaloperator= (const FitsLogical &x)
 
FitsLogicaloperator= (Bool x)
 
Bool isdefined () const
 
void undefine ()
 
 operator Bool ()
 

Protected Attributes

char v
 

Friends

ostream & operator<< (ostream &o, const FitsLogical &)
 

Detailed Description

FITS helper class.

Review Status

Reviewed By:
UNKNOWN
Date Reviewed:
before2004/08/25

Synopsis

FitsLogical is a helper class that is not intended for general use.

Example

Here is an example of the FitsLogical class.

FitsLogical y(True);
..\.
x = y; y = False; x.undefine();
Bool b;
if (x.isdefined())
b = x;
b = y; If y is undefined, b will be false.

Definition at line 90 of file fits.h.

Constructor & Destructor Documentation

◆ FitsLogical() [1/3]

casacore::FitsLogical::FitsLogical ( )
inline

Definition at line 93 of file fits.h.

◆ FitsLogical() [2/3]

casacore::FitsLogical::FitsLogical ( Bool  x)
inline

Definition at line 94 of file fits.h.

References casacore::True.

◆ FitsLogical() [3/3]

casacore::FitsLogical::FitsLogical ( const FitsLogical x)
inline

Definition at line 95 of file fits.h.

Member Function Documentation

◆ isdefined()

Bool casacore::FitsLogical::isdefined ( ) const
inline

Definition at line 100 of file fits.h.

References casacore::False, and casacore::True.

◆ operator Bool()

casacore::FitsLogical::operator Bool ( )
inline

Definition at line 102 of file fits.h.

References casacore::False, and casacore::True.

◆ operator=() [1/2]

FitsLogical& casacore::FitsLogical::operator= ( const FitsLogical x)
inline

Definition at line 96 of file fits.h.

References v.

◆ operator=() [2/2]

FitsLogical& casacore::FitsLogical::operator= ( Bool  x)
inline

Definition at line 98 of file fits.h.

References casacore::True.

◆ undefine()

void casacore::FitsLogical::undefine ( )
inline

Definition at line 101 of file fits.h.

Friends And Related Function Documentation

◆ operator<<

ostream& operator<< ( ostream &  o,
const FitsLogical  
)
friend

Member Data Documentation

◆ v

char casacore::FitsLogical::v
protected

Definition at line 104 of file fits.h.

Referenced by operator=().


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