|
Bsoft 2.1.4
Bernard's software package
|
Examines STAR format files. More...
Functions | |
| int | show_tags (Bstar &star) |
| Prints the list of tags in the STAR data base. More... | |
| int | item_delete_all (Bstar &star, string &tag) |
| Deletes all items associated with a given tag from the STAR data base. More... | |
| int | item_scale_shift (Bstar &star, string &tag, double scale, double shift, int flag) |
| Scales and shifts all items associated with a given tag from the STAR data base. More... | |
| int | item_list (Bstar &star, string &tag) |
| Lists all items associated with a given tag from the STAR data base. More... | |
| int | main (int argc, char **argv) |
| int | string_get_format (string &s, char *format) |
| Gets the format from the item. More... | |
Variables | |
| int | verbose |
| const char * | use [] |
Examines STAR format files.
| int item_delete_all | ( | Bstar & | star, |
| string & | tag | ||
| ) |
Deletes all items associated with a given tag from the STAR data base.
| *star | the STAR database. |
| *tag | tag for items to be deleted. |
The item with a given tag is deleted in all blocks it is found and the item pointers are rearranged to fill in the gap.
| int item_list | ( | Bstar & | star, |
| string & | tag | ||
| ) |
Lists all items associated with a given tag from the STAR data base.
| &star | the STAR database. |
| &tag | tag for items to be listed. |
The item with a given tag is listed to standard output as an end-of-line delimited array.
| int item_scale_shift | ( | Bstar & | star, |
| string & | tag, | ||
| double | scale, | ||
| double | shift, | ||
| int | flag | ||
| ) |
Scales and shifts all items associated with a given tag from the STAR data base.
| &star | the STAR database. |
| &tag | tag for items to be modified. |
| scale | multiplier. |
| shift | value added. |
| flag | 0=integer, 1=real. |
The item must be integer and is modified as:
new_value = old_value*scale + shift.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
| int show_tags | ( | Bstar & | star | ) |
Prints the list of tags in the STAR data base.
| &star | the STAR database |
| int string_get_format | ( | string & | s, |
| char * | format | ||
| ) |
Gets the format from the item.
| &s | string. |
| *format | pointer to pre-allocated format string (modified). |
Returns the format in the given format string.
| const char* use[] |
|
extern |