25 count = sprintf(buffer,
"N[%i", num);
26 _fb->
put(buffer, count);
32 count = sprintf(buffer,
" P{%u", size);
33 _fb->
put(buffer, count);
35 count = sprintf(buffer,
" (%i_%i_%i)", (*i)->quality, (*i)->length, (*i)->GC_content);
36 _fb->
put(buffer, count);
43 size = children.size();
45 count = sprintf(buffer,
" C<%u", size);
46 _fb->
put(buffer, count);
50 i->second->saveASCII(_fb, buffer);
84 size = children.size();
108 for (
unsigned int i=0; i<size; ++i) {
112 probes->insert(new_probe);
123 for (
unsigned int i=0; i<size; ++i) {
125 new_child->
load(_fb);
126 children[new_child->
getNum()] = new_child;
127 if (i % 200 == 0) printf(
"loaded 1st level #%i (%i)\n", i+1, new_child->
getNum());
131 for (
unsigned int i=0; i<size; ++i) {
133 new_child->
load(_fb);
134 children[new_child->
getNum()] = new_child;
158 for (
unsigned int i=0; i<size; ++i) {
162 probes->insert(new_probe);
169 for (
unsigned int i=0; i<size; ++i) {
175 if ((num == -1) && (i % 200 == 0)) printf(
"appended 1st level #%i (%i)\n", i+1, childNum);
180 if (it != children.end()) {
181 it->second->append(_fb);
186 children[childNum] = newChild;
211 for (
unsigned int i=0; i<size; ++i) {
215 probes->insert(new_probe);
226 for (
unsigned int i=0; i<size; ++i) {
232 if ((num == -1) && (i % 200 == 0)) printf(
"read 1st level #%i (%i)\n", i+1, childNum);
238 child->
read(_fb, _call_destination);
void get(void *_data, int _length)
void put_char(unsigned char _c)
bool save(PS_FileBuffer *_fb)
PS_ProbeSet::const_iterator PS_ProbeSetCIter
virtual void callback(void *_caller)=0
char buffer[MESSAGE_BUFFERSIZE]
void put_uint(unsigned int _ui)
void get_uint(unsigned int &_ui)
bool append(PS_FileBuffer *_fb)
bool saveASCII(PS_FileBuffer *_fb, char *buffer)
void put(const void *_data, int _length)
bool read(PS_FileBuffer *_fb, PS_Callback *_call_destination)
bool load(PS_FileBuffer *_fb)
set< PS_ProbePtr, lt_probe > PS_ProbeSet
PS_NodeMap::iterator PS_NodeMapIterator