Logo Search packages:      
Sourcecode: djvulibre version File versions  Download package

void DjVmDir0::add_file ( const GUTF8String name,
bool  iff_file,
int  offset = -1,
int  size = -1 
)

Creates a new file record with name name# at offset offset# and size size#, which is in IFF format if iff_file# is TRUE#.

Definition at line 150 of file DjVmDir0.cpp.

References GBaseString::search().

Referenced by decode().

{
   DEBUG_MSG("DjVmDir0::add_file(): name='" << name << "', iff=" << iff_file <<
           ", offset=" << offset << "\n");
   
   if (name.search('/') >= 0)
     G_THROW( ERR_MSG("DjVmDir0.no_slash") );
   
   GP<FileRec> file=new FileRec(name, iff_file, offset, size);
   name2file[name]=file;
   num2file.resize(num2file.size());
   num2file[num2file.size()-1]=file;
}


Generated by  Doxygen 1.6.0   Back to index