#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 523 of file dm3io.cpp. References in.
|
|
Definition at line 528 of file dm3io.cpp. 00529 { 00530 }
|
|
Definition at line 561 of file dm3io.cpp. References entry_id. Referenced by EMAN::Gatan::TagEntry::read(). 00562 { 00563 int id = entry_id; 00564 entry_id++; 00565 return id; 00566 }
|
|
Definition at line 556 of file dm3io.cpp. Referenced by EMAN::Gatan::TagEntry::read(). 00557 {
00558 return name;
00559 }
|
|
Definition at line 532 of file dm3io.cpp. References in, LOGVAR, portable_fseek(), EMAN::Gatan::TagEntry::read(), and tagtable. Referenced by EMAN::Gatan::TagEntry::read(). 00533 { 00534 LOGVAR("TagGroup::read()"); 00535 00536 int ntags = 0; 00537 portable_fseek(in, sizeof(char) * 2, SEEK_CUR); 00538 fread(&ntags, sizeof(ntags), 1, in); 00539 ByteOrder::become_big_endian(&ntags); 00540 LOGVAR("DM3: ntags = %d\n", ntags); 00541 00542 int err = 0; 00543 00544 for (int i = 0; i < ntags; i++) { 00545 TagEntry tag_entry(in, tagtable, this); 00546 err = tag_entry.read(nodata); 00547 00548 if (err) { 00549 break; 00550 } 00551 } 00552 00553 return err; 00554 }
|
|
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(). |