18 #ifndef PQXX_H_BINARYSTRING
19 #define PQXX_H_BINARYSTRING
21 #include "pqxx/compiler-public.hxx"
22 #include "pqxx/compiler-internal-pre.hxx"
26 #include "pqxx/result"
65 typedef PGSTD::char_traits<char_type>::char_type
value_type;
72 #ifdef PQXX_HAVE_REVERSE_ITERATOR
73 typedef PGSTD::reverse_iterator<const_iterator> const_reverse_iterator;
90 bool empty()
const throw () {
return size()==0; }
98 #ifdef PQXX_HAVE_REVERSE_ITERATOR
99 const_reverse_iterator rbegin() const
100 {
return const_reverse_iterator(end()); }
101 const_reverse_iterator rend() const
102 {
return const_reverse_iterator(begin()); }
109 {
return data()[i]; }
113 {
return !operator==(rhs); }
116 const_reference at(size_type)
const;
125 const char *
get()
const throw ()
127 return reinterpret_cast<const char *
>(super::get());
137 PGSTD::string str()
const;
155 PGSTD::string PQXX_LIBEXPORT
escape_binary(
const PGSTD::string &bin);
161 PGSTD::string PQXX_LIBEXPORT
escape_binary(
const char bin[]);
167 PGSTD::string PQXX_LIBEXPORT
escape_binary(
const char bin[],
size_t len);
173 PGSTD::string PQXX_LIBEXPORT
escape_binary(
const unsigned char bin[]);
179 PGSTD::string PQXX_LIBEXPORT
escape_binary(
const unsigned char bin[],
size_t len);
188 #include "pqxx/compiler-internal-post.hxx"