casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Protected Attributes | List of all members
MirTypeAssert Class Reference

a base for classes that rely on assumptions regarding privitive type sizes. More...

#include <MirTypeAssert.h>

Inheritance diagram for MirTypeAssert:
MirDataRecord MirInfo MirVisReader ConstMirPolSetup MirField MirFreqSetup MirPolCorr MirPolRecps MirSource MirPolSetup

Public Member Functions

 MirTypeAssert ()
 

Static Protected Attributes

static casacore::Bool ok
 

Detailed Description

a base for classes that rely on assumptions regarding privitive type sizes.

Intended use:

Public interface

Review Status

Date Reviewed:
yyyy/mm/dd

Etymology

Current support of Miriad uv-IO is based on certain assumptions about use of memory, specifically the size of primitive types.

Synopsis

This exception is used to indicate that certain assumptions about the size of primitive types do not hold. Miriad IO in aips++ assumes that the sizes of casacore::Int, casacore::Float, and casacore::Double are equal to the corresponding sizes of int, float, and casacore::Double; this exception is thrown when these conditions are not met.

Normally, applications do not create and throw this exception directly as it has been integrated into the MirTypeAssert class which automatically checks the memory assumptions upon construction. Any class that depends on this assumption can inherit from MirTypeAssert.

Motivation

See summary above.

Definition at line 110 of file MirTypeAssert.h.

Constructor & Destructor Documentation

MirTypeAssert::MirTypeAssert ( )

Member Data Documentation

casacore::Bool MirTypeAssert::ok
staticprotected

Definition at line 115 of file MirTypeAssert.h.


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