12.06.2015 Views

The Annoyance Filter.pdf - Fourmilab

The Annoyance Filter.pdf - Fourmilab

The Annoyance Filter.pdf - Fourmilab

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

112 MAIL FOLDER ANNOYANCE-FILTER §129<br />

}<br />

return byteStream ;<br />

void describe (ostream &os = cout ) const<br />

{<br />

os ≪ "Mail␣folder.␣␣Category:␣" ≪ dictionaryWord ::categoryName (category ) ≪<br />

endl ;<br />

os ≪ "␣␣Lines:␣" ≪ getLineCount ( ) ≪ "␣␣Messages:␣" ≪ getMessageCount ( ) ≪ endl ;<br />

}<br />

void setDiagnosticList (list〈string〉 ∗lp)<br />

{<br />

dlist = lp;<br />

}<br />

void setTranscriptList (list〈string〉 ∗lp)<br />

{<br />

tlist = lp;<br />

}<br />

unsigned int sizeMessageTranscript (const unsigned int lineOverhead = 1) const;<br />

void writeMessageTranscript (ostream &os = cout ) const;<br />

void writeMessageTranscript (const string fname = "−") const;<br />

void clearMessageTranscript (void)<br />

{<br />

assert(tlist ≠ Λ);<br />

tlist ⃗ clear ( );<br />

}<br />

void reportParserDiagnostic(const string s);<br />

void reportParserDiagnostic(const ostringstream &os );<br />

};

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!