Isis 3.0 Object Programmers' Reference |
Home |
#include <FileList.h>
Inheritance diagram for Isis::FileList:
This class reads a list of filenames from a file an internalizes them in a standard template vector of strings. Thus, a file like:
m0035431.imq m0030402.imq m0033231.imq . . . m0203331.imq
For internal use only.
Definition at line 66 of file FileList.h.
Public Member Functions | |
FileList (const std::string &list) | |
Constructs a FileList from a file. | |
FileList (std::istream &in) | |
Constructs a FileList from a stream. | |
FileList () | |
Constructs an empty FileList. | |
~FileList () | |
Destroys the FileList object. | |
void | Read (const std::string &list) |
Opens and loads the list of files from a file. | |
void | Read (std::istream &in) |
Loads list of files from a stream. | |
void | Write (const std::string &list) |
Writes a list of files to a file. | |
void | Write (std::ostream &out) |
Writes a list of files to a stream. |
|
Constructs a FileList from a file.
Definition at line 44 of file FileList.cpp. References Read(). |
|
Constructs a FileList from a stream.
Definition at line 53 of file FileList.cpp. References Read(). |
|
Constructs an empty FileList.
Definition at line 36 of file FileList.cpp. |
|
Destroys the FileList object.
Definition at line 73 of file FileList.h. |
|
Loads list of files from a stream. This takes in a stream and loads a file list from it. The lines in the stream are considered separate entries, and comments are ignored. comments are considered to be any line starting with a '#' or '//', and anything after any whitespace following the first text on the line.
Definition at line 102 of file FileList.cpp. References Isis::iString::TrimHead(), and Isis::iString::TrimTail(). |
|
Opens and loads the list of files from a file.
Definition at line 64 of file FileList.cpp. References _FILEINFO_, e, Isis::Filename::Expanded(), Isis::Message::FileOpen(), in, and Isis::iException::Message(). Referenced by FileList(). |
|
Writes a list of files to a stream.
Definition at line 198 of file FileList.cpp. References size. |
|
Writes a list of files to a file.
Definition at line 173 of file FileList.cpp. References _FILEINFO_, Isis::Filename::Expanded(), Isis::Message::FileOpen(), and Isis::iException::Message(). |