55 istm.open(listFile.toString().toLatin1().data(), std::ios::in);
70 QString msg =
"File [" + listFile.toString() +
"] contains no data";
90 bool bHasQuotes =
false;
92 bool isComment =
false;
94 in.getline(buf, 65536);
97 string::size_type loc = s.find(
"\"", 0);
99 if (loc != string::npos) {
111 if(strlen(buf) == 0) {
114 for (
int index = 0; index < (int)strlen(buf); index++) {
115 if (buf[index] ==
'#' || (buf[index] ==
'/' && buf[index+1] ==
'/')) {
119 else if(buf[index] ==
' ') {
133 s = s.
Token(
" \n\r\t\v");
136 s = s.
Token(
" \n\r\t\v,");
139 this->push_back(s.ToQt());
143 if (this->size() == 0) {
144 string msg =
"Input Stream Empty";
161 ostm.open(outputFileList.toString().toLatin1().data(), std::ios::out);
181 for (
int i = 0; i < this->size(); i++) {
182 out << (*this)[i].toString() << endl;
void read(FileName listFile)
reads in a FileName obj
FileList()
Creates an empty FileList obj.
void write(FileName outputFileList)
writes to a FileName obj
File name manipulation and expansion.
@ User
A type of error that could only have occurred due to a mistake on the user's part (e....
@ Io
A type of error that occurred when performing an actual I/O operation.
Adds specific functionality to C++ strings.
IString TrimTail(const std::string &chars)
Trims the input characters from the end of the object IString.
IString Token(const IString &separator)
Returns the first token in the IString.
IString TrimHead(const std::string &chars)
Trims The input characters from the beginning of the object IString.
QString FileOpen(const QString &filename)
This error should be used when a file could not be opened.
This is free and unencumbered software released into the public domain.
Namespace for the standard library.