![]() |
Bsoft 2.1.4
Bernard's software package
|
Overall STAR class to hold all data blocks and options for I/O.. More...
#include <star.h>
Public Member Functions | |
Bstar () | |
Bstar (string filename) | |
int | read (string filename) |
Reads paramaters and data into a STAR data base from a file. More... | |
int | write (string filename) |
Writes a STAR data base to a STAR format file. More... | |
int | write (string filename, int split) |
void | line_length (long i) |
long | line_length () |
void | comment (const string &s) |
string & | comment () |
long | list_comments (long len) |
vector< BstarBlock > & | blocks () |
bool | exists (string t) |
BstarBlock & | block (long i) |
BstarBlock & | find (string t) |
BstarBlock & | add_block (const string &s) |
long | number_of_blocks (string t) |
void | replace_tag (string oldtag, string newtag) |
void | erase (const string &s) |
Overall STAR class to hold all data blocks and options for I/O..
The split flag allows the user to output data blocks in separate files in stead of one big file. The line length field allows the user to output long lines without wrapping it around. The comments are ignored but output to the a new file - this can be used to document the history of the file. The STAR database is a hierarchy consisting of blocks, each with a set of items.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Reads paramaters and data into a STAR data base from a file.
filename | a file name. Every data block is read separately and comments are preserved as far as possible. |
|
inline |
|
inline |
Writes a STAR data base to a STAR format file.
filename | file name. |
|
inline |