summaryrefslogtreecommitdiff
path: root/src/interfaces/libpq++/pglobject.h
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2002-07-02 16:32:19 +0000
committerBruce Momjian <bruce@momjian.us>2002-07-02 16:32:19 +0000
commita4485ea894ddd622daa81009d1556c95cd357781 (patch)
tree40b5d89b6807e7e2088300eb5b113bf9604b47c8 /src/interfaces/libpq++/pglobject.h
parentc9a734521712797b1cd6a77bf9cabfe4c503e186 (diff)
Indent libpq++ as mentioned in email. Format was terrible, and this
will make fixing things easier.
Diffstat (limited to 'src/interfaces/libpq++/pglobject.h')
-rw-r--r--src/interfaces/libpq++/pglobject.h87
1 files changed, 44 insertions, 43 deletions
diff --git a/src/interfaces/libpq++/pglobject.h b/src/interfaces/libpq++/pglobject.h
index 33b01df16ca..b44187b6902 100644
--- a/src/interfaces/libpq++/pglobject.h
+++ b/src/interfaces/libpq++/pglobject.h
@@ -1,24 +1,24 @@
/*-------------------------------------------------------------------------
- *
- * 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.10 2002/06/20 20:29:54 momjian Exp $
- *
- *-------------------------------------------------------------------------
- */
-
+*
+* 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
@@ -35,36 +35,37 @@
// PgLargeObject - a class for accessing Large Object in a database
//
// ****************************************************************
-class DLLIMPORT PgLargeObject : public PgConnection {
+class DLLIMPORT PgLargeObject : public PgConnection
+{
private:
- int pgFd;
- Oid pgObject;
- PGSTD string loStatus;
- void Init(Oid lobjId = 0);
+ 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;
+ 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&);
+ // We don't support copying of PgLargeObject objects,
+ // so make copy constructor and assignment op private.
+ PgLargeObject(const PgLargeObject&);
+ PgLargeObject& operator= (const PgLargeObject&);
};