|
|
1.1 ! root 1: /* ! 2: Copyright (c) 2008 TrueCrypt Foundation. All rights reserved. ! 3: ! 4: Governed by the TrueCrypt License 2.4 the full text of which is contained ! 5: in the file License.txt included in TrueCrypt binary and source code ! 6: distribution packages. ! 7: */ ! 8: ! 9: #ifndef TC_HEADER_Platform_TextReader ! 10: #define TC_HEADER_Platform_TextReader ! 11: ! 12: #include "PlatformBase.h" ! 13: #include "FileStream.h" ! 14: #include "FilesystemPath.h" ! 15: #include "SharedPtr.h" ! 16: #include "Stream.h" ! 17: ! 18: namespace TrueCrypt ! 19: { ! 20: class TextReader ! 21: { ! 22: public: ! 23: TextReader (const FilePath &path); ! 24: TextReader (shared_ptr <Stream> stream) : InputStream (stream) { } ! 25: virtual ~TextReader () { } ! 26: ! 27: virtual bool ReadLine (string &outputString); ! 28: ! 29: protected: ! 30: shared_ptr <File> InputFile; ! 31: shared_ptr <Stream> InputStream; ! 32: }; ! 33: } ! 34: ! 35: #endif // TC_HEADER_Platform_TextReader
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.