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