aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/libpq++/pglobject.h
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>2002-08-22 00:15:14 +0000
committerMarc G. Fournier <scrappy@hub.org>2002-08-22 00:15:14 +0000
commitda4683fbe1cba48cf5b5b29055b66e0bacb00162 (patch)
tree87834b1b18614313e895dcc8c504f58af9f6b4b2 /src/interfaces/libpq++/pglobject.h
parentb663f3443ba096a06970214c3e83e79f6e570b84 (diff)
downloadpostgresql-da4683fbe1cba48cf5b5b29055b66e0bacb00162.tar.gz
postgresql-da4683fbe1cba48cf5b5b29055b66e0bacb00162.zip
Okay, libpq++ is moved to GBorg, and all traces of it have been removed
from the core repository ... I haven't *moved* the libpq++ files out of the tree, mainly as we want to keep them in place for past branches ... Peter, I think I've covered all the files I need, and re-ran autoconf to make sure the configure file is in place properly ...
Diffstat (limited to 'src/interfaces/libpq++/pglobject.h')
-rw-r--r--src/interfaces/libpq++/pglobject.h74
1 files changed, 0 insertions, 74 deletions
diff --git a/src/interfaces/libpq++/pglobject.h b/src/interfaces/libpq++/pglobject.h
deleted file mode 100644
index b44187b6902..00000000000
--- a/src/interfaces/libpq++/pglobject.h
+++ /dev/null
@@ -1,74 +0,0 @@
-/*-------------------------------------------------------------------------
-*
-* FILE
-* pglobject.h
-*
-* DESCRIPTION
-* declaration of the PGlobj class.
-* PGlobj encapsulates a large object interface to Postgres backend
-*
-* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
-* Portions Copyright (c) 1994, Regents of the University of California
-*
-*
-* $Id: pglobject.h,v 1.11 2002/07/02 16:32:19 momjian Exp $
-*
-*-------------------------------------------------------------------------
-*/
-
-#ifndef PGLOBJECT_H
-#define PGLOBJECT_H
-
-#ifndef PGCONNECTION_H
-#include "pgconnection.h"
-#endif
-
-#ifdef HAVE_NAMESPACE_STD
-#define PGSTD std::
-#else
-#define PGSTD
-#endif
-
-
-// ****************************************************************
-//
-// PgLargeObject - a class for accessing Large Object in a database
-//
-// ****************************************************************
-class DLLIMPORT PgLargeObject : public PgConnection
-{
-private:
- int pgFd;
- Oid pgObject;
- PGSTD string loStatus;
- void Init(Oid lobjId = 0);
-
-public:
- explicit PgLargeObject(const char* conninfo = 0); // use reasonable defaults and create large object
- explicit PgLargeObject(Oid lobjId, const char* conninfo = 0); // use reasonable defaults and open large object
- ~PgLargeObject(); // close connection and clean up
-
- void Create();
- void Open();
- void Close();
- int Read(char* buf, int len);
- int Write(const char* buf, int len);
- int LSeek(int offset, int whence);
- int Tell() const;
- int Unlink();
- Oid LOid();
- Oid Import(const char* filename);
- int Export(const char* filename);
- PGSTD string Status() const;
-
-private:
- // We don't support copying of PgLargeObject objects,
- // so make copy constructor and assignment op private.
- PgLargeObject(const PgLargeObject&);
- PgLargeObject& operator= (const PgLargeObject&);
-};
-
-
-#undef PGSTD
-
-#endif // PGLOBJECT_H