36 _sections[i] = list<string>();
42 _file.open(fname.c_str());
44 cout <<
"Memory Writer: Can not open file " << fname << endl;
50 list<string>::iterator it;
56 if (fi.compare(
"{") == 0) {
59 if (fi.compare(cmp) == 0) {
64 for (it = rmv.begin(); it != rmv.end(); it++) {
92 if (!s.str().empty()) {
108 list<string>::iterator it;
109 for (it =
block.begin(); it !=
block.end(); it++) {
116 list<string>::iterator it;
118 istringstream stream(*it);
120 while (getline(stream, line)) {
138 list<string>::iterator it;
139 for (it =
block.begin(); it !=
block.end(); it++) {
148 for (
int i = 0; i <
_indent; i++) {
159 for (
int i = 0; i < n; i++) {
167 _file <<
"{" << endl;
185 _file <<
"}" << endl << endl;
194 for (
string i = symbols.
begin(it); !symbols.
end(it); i = symbols.
next(it)) {
203 for (
int i = 0; i <
SECTIONS; i++) {
205 name <<
"/tmp/temp" << i;
212 for (
int i = 0; i <
SECTIONS; i++) {
214 name <<
"/tmp/temp" << i;
216 remove(name.str().c_str());
242 list<string>::iterator it;
252 _file << s.str() << endl;
262 list<string>::iterator it;
263 for (it =
block.begin(); it !=
block.end(); it++) {
264 _file << *it << endl << endl;
272 for (
int i = 0; i <
_indent; i++) {
283 for (
int i = 0; i < n; i++) {
302 for (
string i = symbols.
begin(it); !symbols.
end(it); i = symbols.
next(it)) {