This commit is contained in:
2024-08-07 09:16:27 -04:00
parent fdfadd5c7e
commit 5f971cf684
5200 changed files with 731717 additions and 0 deletions

70
sql/HDBC.HPP Normal file
View File

@@ -0,0 +1,70 @@
#ifndef _SQL_HDBC_HPP_
#define _SQL_HDBC_HPP_
#ifndef _SQL_SQL_HPP_
#include <sql/sql.hpp>
#endif
class HandleDatabase
{
public:
HandleDatabase(void);
HandleDatabase(HDBC hDBC);
HandleDatabase(const HandleDatabase &someHandleDatabase);
~HandleDatabase();
HandleDatabase &operator=(const HandleDatabase &someHandleDatabase);
HandleDatabase &operator=(HDBC hDBC);
WORD operator==(const HandleDatabase &someHandleDatabase)const;
operator HDBC(void)const;
private:
HDBC mhDBC;
};
inline
HandleDatabase::HandleDatabase(void)
: mhDBC(0)
{
}
inline
HandleDatabase::HandleDatabase(const HandleDatabase &someHandleDatabase)
{
*this=someHandleDatabase;
}
inline
HandleDatabase::HandleDatabase(HDBC hDBC)
: mhDBC(hDBC)
{
}
inline
HandleDatabase::~HandleDatabase()
{
}
inline
HandleDatabase &HandleDatabase::operator=(const HandleDatabase &someHandleDatabase)
{
mhDBC=someHandleDatabase.mhDBC;
return *this;
}
inline
HandleDatabase &HandleDatabase::operator=(HDBC hDBC)
{
mhDBC=hDBC;
return *this;
}
inline
WORD HandleDatabase::operator==(const HandleDatabase &someHandleDatabase)const
{
return (WORD)(mhDBC==someHandleDatabase.mhDBC);
}
inline
HandleDatabase::operator HDBC(void)const
{
return mhDBC;
}
#endif