#ifndef Connection_h
#define Connection_h

/* This object runs against both SQL Server & Oracle. For maximum speed, it 
   uses the native API in for both; that's OLEDB for SQL server and OCI for 
   Oracle.
   
   This class provides the database abstraction, plus connection pooling for 
   both.
 */
class CConnection
{
	// Connection index
	int m_idx;

public:
	CConnection() {}
	virtual ~CConnection()=0 {}

	int getIndex() const { return m_idx; }
	void setIndex(int idx) { m_idx = idx; }

	// Fill this out with appropriate virtual connections
	virtual int isAccessAllowed()=0;
};

#endif // Connection_h
