izstreamHelper Class Reference

#include <ifzstream.h>

Inheritance diagram for izstreamHelper:
ifzstream

List of all members.

Public Member Functions

 izstreamHelper (const char *filename)

Protected Attributes

std::string popen_command

Detailed Description

Definition at line 52 of file ifzstream.h.


Constructor & Destructor Documentation

izstreamHelper::izstreamHelper ( const char *  filename  )  [inline]

Definition at line 54 of file ifzstream.h.

References popen_command.

00054                                        {
00055     const char* fsuffix = strrchr(filename,'.');
00056     popen_command = "cat";
00057     if      ( strcasecmp(fsuffix,".bz2") == 0 ) popen_command = "bzcat";
00058     else if ( strcasecmp(fsuffix,".gz")  == 0 ) popen_command = "zcat";
00059     popen_command += " ";
00060     popen_command += filename;
00061     popen_command += " 2>/dev/null";   // quietly
00062   }


Member Data Documentation

std::string izstreamHelper::popen_command [protected]

Definition at line 64 of file ifzstream.h.

Referenced by izstreamHelper().


The documentation for this class was generated from the following file:

Generated on 19 Jan 2018 for loon by  doxygen 1.6.1