Go to the documentation of this file.
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>
void flush()
Flush the currently used string bucket.
Int lastStringBucket() const
void putShape(Int &bucketNr, Int &offset, Int &length, const IPosition &aShape)
Put a single string or an array of strings into a bucket.
void get(Array< String > &string, Int bucket, Int offset, Int length, Bool handleShape)
void replaceData(Int &offset, Int length, const Char *data)
void replace(Int bucketNr, Int offset, Int length, Int totalLength, const IPosition &aShape)
void put(Int &bucketNr, Int &offset, Int &length, const Array< String > &string, Bool handleShape)
SSMStringHandler(SSMBase *aBase)
Default constructor initializes last string bucket to -1.
void replace(Int bucketNr, Int offset, Int length, Int totalLength, const Array< String > &string, 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 setLastStringBucket(Int lastStringBucket)
Set or get last string bucketnr.
void getShape(IPosition &aShape, Int bucket, Int &offset, Int length)
Get the shape in the given bucket and offset.
void init()
Initialize the StringHandler.
void replace(Int bucketNr, Int offset, Int length, const String &string)
Replace the current data with the new data.
SSMStringHandler & operator=(const SSMStringHandler &)
this file contains all the compiler specific defines
SSMStringHandler(const SSMStringHandler &)
Forbid copy constructor and assignment.
void getBucket(uInt bucketNr, Bool isNew=False)
Get the given bucket and make it current.
LatticeExprNode length(const LatticeExprNode &expr, const LatticeExprNode &axis)
2-argument function to get the length of an axis.
void put(Int &bucketNr, Int &offset, Int &length, const String &string)
Put a single string or an array of strings into a bucket.
void resync()
Resynchronize (after a table lock was acquired).
void getNewBucket(Bool doConcat)
Get a new bucket and make it current.
template <class T, class U> class vector;
String: the storage and methods of handling collections of characters.
bool Bool
Define the standard types used by Casacore.
void remove(Int bucketNr, Int offset, Int length)
Remove data with the given length from a bucket.
void putData(Int length, const Char *data)
Put the data with the given length at the end of the current bucket.
void get(String &string, Int bucket, Int offset, Int length)
Get a string or an array of strings.