1 //----------------------------------------------------------------------
2 // This software is part of the OpenBeOS distribution and is covered
4 //---------------------------------------------------------------------
6 \file sniffer/CharStream.h
9 #ifndef _SNIFFER_CHAR_STREAM_H
10 #define _SNIFFER_CHAR_STREAM_H
12 #include <SupportDefs.h>
20 //! Manages a stream of characters
21 /*! CharStream is used by the scanner portion of the parser, which is implemented
22 in TokenStream::SetTo().
24 It's also used by BPrivate::TRoster while parsing through the the
25 roster's RosterSettings file.
29 CharStream(const std::string
&string
);
31 virtual ~CharStream();
33 status_t
SetTo(const std::string
&string
);
35 status_t
InitCheck() const;
38 const std::string
& String() const;
48 CharStream(const CharStream
&ref
);
49 CharStream
& operator=(const CharStream
&ref
);
52 }; // namespace Sniffer
53 }; // namespace Storage
54 }; // namespace BPrivate
56 #endif // _SNIFFER_CHAR_STREAM_H