Revision 657,
527 bytes
checked in by mattausch, 19 years ago
(diff) |
added ogre dependencies and patched ogre sources
|
Line | |
---|
1 | #ifndef UTILLIB_COMMENTSTREAM_H
|
---|
2 | #define UTILLIB_COMMENTSTREAM_H
|
---|
3 |
|
---|
4 | #include <iostream>
|
---|
5 |
|
---|
6 | namespace utillib {
|
---|
7 |
|
---|
8 | /// strips comments from another stream
|
---|
9 | /** \bug does not provide a putback area. is that required by the standard?
|
---|
10 | * \todo should be expanded to handle comment markers with more than one
|
---|
11 | * character. */
|
---|
12 | class commentstream : public std::istream {
|
---|
13 | public:
|
---|
14 | explicit commentstream(std::istream &, char start = '#',
|
---|
15 | char end = '\n');
|
---|
16 | ~commentstream();
|
---|
17 | };
|
---|
18 |
|
---|
19 | } // namespace utillib
|
---|
20 |
|
---|
21 | #endif
|
---|
Note: See
TracBrowser
for help on using the repository browser.