00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef PQXX_TABLESTREAM_H
00015 #define PQXX_TABLESTREAM_H
00016
00017 #include <string>
00018
00019 #include "pqxx/compiler.h"
00020
00021
00022
00023
00024
00025 namespace pqxx
00026 {
00027
00028
00029
00030 class Transaction_base;
00031
00032
00034
00042 class PQXX_LIBEXPORT TableStream
00043 {
00044 public:
00045 TableStream(Transaction_base &Trans,
00046 const PGSTD::string &Name,
00047 const PGSTD::string &Null=PGSTD::string());
00048 virtual ~TableStream() =0;
00049
00050 PGSTD::string Name() const { return m_Name; }
00051
00052 protected:
00053 Transaction_base &Trans() const throw () { return m_Trans; }
00054 PGSTD::string NullStr() const { return m_Null; }
00055
00056 private:
00057 Transaction_base &m_Trans;
00058 PGSTD::string m_Name;
00059 PGSTD::string m_Null;
00060
00061
00062 TableStream();
00063 TableStream(const TableStream &);
00064 TableStream &operator=(const TableStream &);
00065 };
00066
00067
00068 }
00069
00070 #endif
00071