28 #ifndef TABLES_SSMSTRINGHANDLER_H
29 #define TABLES_SSMSTRINGHANDLER_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/casa/OS/Conversion.h>
35 #include <casacore/casa/BasicSL/String.h>
36 #include <casacore/casa/Arrays/Array.h>
SSMStringHandler(SSMBase *aBase)
Default constructor initializes last string bucket to -1.
SSMStringHandler(const SSMStringHandler &)
Forbid copy constructor and assignment.
Int lastStringBucket() const
void get(String &string, Int bucket, Int offset, Int length)
Get a string or an array of strings.
void init()
Initialize the StringHandler.
void replaceData(Int &offset, Int length, const Char *data)
void setLastStringBucket(Int lastStringBucket)
Set or get last string bucketnr.
void remove(Int bucketNr, Int offset, Int length)
Remove data with the given length from a bucket.
void get(Array< String > &string, Int bucket, Int offset, Int length, Bool handleShape)
void getData(Int length, Char *data, Int &offset)
Get the data with the given length from the curent bucket at the given offset.
void replace(Int bucketNr, Int offset, Int length, Int totalLength, const Array< String > &string, Bool handleShape)
void resync()
Resynchronize (after a table lock was acquired).
void flush()
Flush the currently used string bucket.
void replace(Int bucketNr, Int offset, Int length, const String &string)
Replace the current data with the new data.
void replace(Int bucketNr, Int offset, Int length, Int totalLength, const IPosition &aShape)
void putData(Int length, const Char *data)
Put the data with the given length at the end of the current bucket.
void getNewBucket(Bool doConcat)
Get a new bucket and make it current.
void getBucket(uInt bucketNr, Bool isNew=False)
Get the given bucket and make it current.
SSMStringHandler & operator=(const SSMStringHandler &)
void put(Int &bucketNr, Int &offset, Int &length, const String &string)
Put a single string or an array of strings into a bucket.
void getShape(IPosition &aShape, Int bucket, Int &offset, Int length)
Get the shape in the given bucket and offset.
void putShape(Int &bucketNr, Int &offset, Int &length, const IPosition &aShape)
Put a single string or an array of strings into a bucket.
void put(Int &bucketNr, Int &offset, Int &length, const Array< String > &string, Bool handleShape)
String: the storage and methods of handling collections of characters.
this file contains all the compiler specific defines
LatticeExprNode length(const LatticeExprNode &expr, const LatticeExprNode &axis)
2-argument function to get the length of an axis.
bool Bool
Define the standard types used by Casacore.