Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

void Impala::Core::Feature::LabelSet::Save ( String  fileName,
Util::Database db 
) [inline]

Definition at line 80 of file LabelSet.h.

References Impala::Util::Database::GetIOBuffer(), mMap, Impala::Util::IOBuffer::NativeTypeWrite(), and Impala::Util::IOBuffer::Puts().

Referenced by Impala::Core::Feature::Computor::WriteProtoFeatureTableSet().

00081     {
00082         Util::IOBuffer* buf = db->GetIOBuffer(fileName, false, false, "tmp");
00083         if (buf)
00084         {
00085             std::vector<Quid> quids = mMap.GetAllIdx();
00086             std::vector<String> labels = mMap.GetAll();
00087             for (int i=0 ; i<quids.size() ; i++)
00088             {
00089                 buf->NativeTypeWrite(quids[i]);
00090                 buf->Puts(labels[i]);
00091             }
00092         }
00093         delete buf;
00094     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:19:27 2011 for ImpalaSrc by  doxygen 1.5.1