181 uInt filebufSize=65536,
282 { *
this <<
uInt(vec.size());
283 for (
typename vector<T>::const_iterator iter=vec.begin();
284 iter!=vec.end(); ++iter) {
344 AipsIO&
get (
uInt nrval,
unsigned short* values);
346 AipsIO&
get (
uInt nrval,
unsigned int* values);
363 for (
typename vector<T>::iterator iter=vec.begin();
364 iter!=vec.end(); ++iter) {
370 AipsIO&
get (vector<Bool>& vec);
void testput()
Test if put is possible (throw exception if not).
uInt putstart(const String &objectType, uInt objectVersion)
Start putting an object.
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
AipsIO & operator<<(const Bool &value)
Put a single value.
const String & getNextType()
Get the type of the next object stored.
std::complex< Float > Complex
AipsIO()
No file attached yet.
ByteIO * file_p
The file object.
Abstract base class to combine multiple files in a single one.
AipsIO is the object persistency mechanism of Casacore.
int swget_p
<0 = not opened for get 0 = no getstart done >0 = get is possible
uInt level_p
Nested object level.
unsigned long long uInt64
static const uInt magicval_p
magic value to check sync.
void testputerr()
Throw exception for testput.
Bool hasCachedType_p
True = the object type has already been read.
void testgeterrLength()
Throw exception for testgetLength.
Int64 getpos()
Get and set file-offset.
AipsIO & put(uInt nrval, const Bool *values, Bool putNR=True)
Put an array of values with the given number of values.
TypeIO * io_p
The actual IO object.
int swput_p
<0 = not opened for put 0 = no putstart done >0 = put is possible
void openInit(ByteIO::OpenOption)
Initialize everything for the open.
String objectType_p
The cached object type.
Int64 setpos(Int64 offset)
uInt maxlev_p
Current size of objlen and objptr.
uInt putend()
End putting an object.
std::complex< Double > DComplex
Abstract base class for IO on a byte stream.
Abstract base class for IO of data in a type-dependent format.
uInt getstart(const String &objectType)
Start reading an object.
Block< Int64 > objptr_p
Offset of length at each level.
bool Bool
Define the standard types used by Casacore.
Block< uInt > objlen_p
Object length at each level.
~AipsIO()
Close if not done yet.
void close()
Close file opened.
AipsIO & operator>>(Bool &value)
Get a single value.
void open(const String &fileName, ByteIO::OpenOption=ByteIO::Old, uInt filebufSize=65536, MultiFileBase *mfile=0)
Open/create file (either a regular file or a MultiFileBase virtual file).
void testgetLength()
Test if get did not exceed object.
OpenOption
Define the possible ByteIO open options.
uInt getend()
End reading an object.
ByteIO::OpenOption fopt_p
File open option.
Bool seekable_p
Is the file is seekable?
void testget()
Test if get is possible (throw exception if not).
String: the storage and methods of handling collections of characters.
Int opened_p
1 = file was opened by AipsIO 0 = file not opened -1 = file opened by user (=fd passed) ...
AipsIO & getnew(uInt &nrval, Bool *&values)
Read in values as written by the function put.
Block< uInt > objtln_p
Object length to be read at each level.
ByteIO::OpenOption fileOption() const
Return the file option.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
void testgeterr()
Throw exception for testget.
AipsIO & put(const vector< T > &vec)
Put a vector as an array of values For standard types it has the same result as put with putNR=True...