31 theHeaderSizeInBytes(header_size_in_bytes),
32 theBytesPerLine(bytes_per_pixel * samples_per_line),
34 theNumberOfChannels(number_of_channels),
35 theErrorStatus(OSSIM_OK)
37 static const char MODULE[] =
"ossimBilSplitter::ossimBilSplitter";
63 <<
"\nFile size error..." 64 <<
"\nbytes_per_pixel * samples_per_line * " 65 <<
"number_of_channels should" 66 <<
"\ndivide evenly into total file size in bytes." 67 <<
"\nHeader size in bytes: " << header_size_in_bytes
68 <<
"\nBytes per pixel: " << bytes_per_pixel
69 <<
"\nSamples per line: " << samples_per_line
72 <<
"\nFile size in bytes: " <<
size 73 <<
"\nthe file size in bytes. Returning with error." 82 <<
"\nHeader size in bytes: " << header_size_in_bytes
83 <<
"\nBytes per pixel: " << bytes_per_pixel
84 <<
"\nSamples per line: " << samples_per_line
98 static const char MODULE[] =
"ossimBilSplitter::output_multi_files";
103 <<
"\nError status has been set. Cannot split file." <<
"\n";
119 os[i].open(tmpFile.
c_str(), ios::out | ios::binary);
124 <<
"Cannot open: " << tmpFile.
c_str()
125 <<
"\nReturning from application." <<
"\n";
156 << setprecision(0) << setw(3)
157 << linesWritten / totalLines * 100.0 <<
" % \r" 167 delete [] lineBuffer;
ifstream theSourceFileStr
ossim_int64 fileSize() const
static ossimString toString(bool aValue)
Numeric to string methods.
ossim_uint32 theBytesPerLine
ossimBilSplitter(const char *file_to_split, ossim_uint32 header_size_in_bytes, ossim_uint32 bytes_per_pixel, ossim_uint32 samples_per_line, ossim_uint32 number_of_channels)
unsigned int ossim_uint32
ossim_uint32 theLinesToWrite
ossim_uint32 theHeaderSizeInBytes
bool output_multi_files(const char *output_dir)
ossimFilename dirCat(const ossimFilename &file) const
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string's contents...
std::basic_ofstream< char > ofstream
Class for char output file streams.
ossimStatus theErrorStatus
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
ossim_uint32 theNumberOfChannels