#include <dm3io.h>
Collaboration diagram for EMAN::Gatan::TagGroup:
Public Member Functions | |
TagGroup (FILE *data_file, TagTable *tagtable, const string &groupname) | |
~TagGroup () | |
int | read (bool nodata=false) |
string | get_name () const |
int | get_entry_id () |
Private Attributes | |
FILE * | in |
TagTable * | tagtable |
string | name |
int | entry_id |
|
Definition at line 524 of file dm3io.cpp. References in.
|
|
Definition at line 529 of file dm3io.cpp. 00530 { 00531 }
|
|
Definition at line 562 of file dm3io.cpp. References entry_id. Referenced by EMAN::Gatan::TagEntry::read(). 00563 { 00564 int id = entry_id; 00565 entry_id++; 00566 return id; 00567 }
|
|
Definition at line 557 of file dm3io.cpp. Referenced by EMAN::Gatan::TagEntry::read(). 00558 {
00559 return name;
00560 }
|
|
Definition at line 533 of file dm3io.cpp. References in, LOGVAR, portable_fseek(), EMAN::Gatan::TagEntry::read(), and tagtable. Referenced by EMAN::Gatan::TagEntry::read(). 00534 { 00535 LOGVAR("TagGroup::read()"); 00536 00537 int ntags = 0; 00538 portable_fseek(in, sizeof(char) * 2, SEEK_CUR); 00539 fread(&ntags, sizeof(ntags), 1, in); 00540 ByteOrder::become_big_endian(&ntags); 00541 LOGVAR("DM3: ntags = %d\n", ntags); 00542 00543 int err = 0; 00544 00545 for (int i = 0; i < ntags; i++) { 00546 TagEntry tag_entry(in, tagtable, this); 00547 err = tag_entry.read(nodata); 00548 00549 if (err) { 00550 break; 00551 } 00552 } 00553 00554 return err; 00555 }
|
|
Definition at line 155 of file dm3io.h. Referenced by get_entry_id(). |
|
Definition at line 152 of file dm3io.h. Referenced by read(). |
|
|
|
Definition at line 153 of file dm3io.h. Referenced by read(). |