Initial Commit
This commit is contained in:
36
common/SMRTSTRM.HPP
Normal file
36
common/SMRTSTRM.HPP
Normal file
@@ -0,0 +1,36 @@
|
||||
#ifndef _COMMON_SMARTSTREAM_HPP_
|
||||
#define _COMMON_SMARTSTREAM_HPP_
|
||||
#include <iostream.h>
|
||||
#include <strstrea.h>
|
||||
#ifndef _COMMON_STRING_HPP_
|
||||
#include <common/string.hpp>
|
||||
#endif
|
||||
|
||||
class SmartStream : public strstream
|
||||
{
|
||||
public:
|
||||
enum {Colon=':',Comma=',',DoubleQuote='"',LeftParen='(',RightParen=')'};
|
||||
SmartStream(void);
|
||||
SmartStream(const String &someString);
|
||||
~SmartStream();
|
||||
SmartStream &fail(void);
|
||||
private:
|
||||
};
|
||||
|
||||
inline
|
||||
SmartStream::SmartStream(void)
|
||||
{
|
||||
}
|
||||
|
||||
inline
|
||||
SmartStream::SmartStream(const String &someString)
|
||||
{
|
||||
*this<<(char*)someString<<ends;
|
||||
}
|
||||
|
||||
inline
|
||||
SmartStream::~SmartStream()
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user