Products Support Documentation Download
examples/hello_world_gen.cpp
/*
* Raima Database C++ Source File
* This file is autogenerated, please don't edit the file
*/
#include "hello_world_gen_api.h"
#include "hello_world_cat.h"
using namespace RDM_CPP;
using namespace RDM_CPP::HELLO_WORLD;
Db_hello_world Db_hello_world::Open (
const char *name,
)
{
return Db::Open (name, mode, hello_world_cat);
}
#if !defined(RDM_NO_UNICODE)
Db_hello_world Db_hello_world::Open (
const wchar_t *name,
)
{
return Db::Open (name, mode, hello_world_cat);
}
#endif
dbType Db_hello_world::Type (
void
)
{
static char const type = '\0';
return &type;
}
Db_hello_world::Db_hello_world (
void
) throw ()
{
}
Db_hello_world::Db_hello_world (
const Db& db
) throw () : Db (db, Type())
{
}
Db_hello_world::Db_hello_world (
const Db_hello_world& db
) throw () : Db (db)
{
}
Db_hello_world::Db_hello_world (
IDb *idb
) : Db (idb)
{
}
Db_hello_world& Db_hello_world::operator = (
const Db& db
)
{
return static_cast<Db_hello_world&>(_AssignAndVerifyType (Type (), db)); /*lint !e1772 ('*this' is being returned from the called function) */ /*lint !e1774 (AssignedAndVerifyType will make sure this is the right type, so static_check is sufficient) */
} /*lint !e1529 (checking for assignment to 'this' in the called function) */
Db_hello_world& Db_hello_world::operator = (
const Db_hello_world& db
) throw ()
{
return static_cast<Db_hello_world&>(_AssignAndVerifyType (Type (), static_cast<const Db&>(db))); /*lint !e1772 ('*this' is being returned from the called function) */ /*lint !e1774 (AssignedAndVerifyType will make sure this is the right type, so static_check is sufficient) */
} /*lint !e1529 (checking for assignment to 'this' in the called function) */
Db_hello_world::~Db_hello_world ()
{
}
Cursor_INFO Db_hello_world::Insert_INFO_Row (
const INFO& columnValues
) const
{
return Cursor_INFO (_InsertRow (Cursor_INFO::GetTableId (), &columnValues));
}
Cursor_INFO Db_hello_world::Insert_INFO_Row (
) const
{
return Cursor_INFO (_InsertRow (Cursor_INFO::GetTableId (), NULL));
}
Cursor_INFO Db_hello_world::Insert_INFO_Rows (
const INFO *columnValues,
uint32_t numRows,
size_t bytesIn,
Cursor& cursorStatus
) const
{
return Cursor_INFO (_InsertRows (Cursor_INFO::GetTableId(), columnValues, numRows, bytesIn, cursorStatus));
}
Cursor_INFO Db_hello_world::Insert_INFO_Rows (
const INFO *columnValues,
uint32_t numRows,
Cursor& cursorStatus
) const
{
return Cursor_INFO (_InsertRows (Cursor_INFO::GetTableId(), columnValues, numRows, cursorStatus));
}
Cursor_INFO Db_hello_world::Insert_INFO_Rows (
const INFO *columnValues,
uint32_t numRows
) const
{
return Cursor_INFO (_InsertRows (Cursor_INFO::GetTableId(), columnValues, numRows));
}
Cursor_INFO Db_hello_world::Insert_INFO_Rows (
const INFO *columnValues,
uint32_t numRows,
size_t bytesIn
) const
{
return Cursor_INFO (_InsertRows (Cursor_INFO::GetTableId(), columnValues, numRows, bytesIn));
}
Cursor_INFO Db_hello_world::Get_INFO_Rows (
) const
{
return Cursor_INFO (_GetRows (Cursor_INFO::GetTableId (), rowId));
}
RDM_TABLE_ID Cursor_INFO::GetTableId (
void
)
{
return TABLE_INFO;
}
Cursor_INFO::Cursor_INFO (
void
) throw ()
{
}
Cursor_INFO::Cursor_INFO (
const Cursor& cursor
) : Cursor (cursor, GetTableId ())
{
}
Cursor_INFO::Cursor_INFO (
const Cursor_INFO& cursor
) throw () : Cursor (cursor)
{
}
Cursor_INFO& Cursor_INFO::operator = (
const Cursor& cursor
)
{
return static_cast<Cursor_INFO&>(_AssignAndVerifyTableId (GetTableId (), cursor)); /*lint !e1772 ('*this' is being returned from the called function) */ /*lint !e1774 (_AssignAndVerifyTableId will make sure this is the right table id, so static_check is sufficient) */
} /*lint !e1529 (checking for assignment to 'this' in the called function) */
Cursor_INFO& Cursor_INFO::operator = (
const Cursor_INFO& cursor
) throw ()
{
return static_cast<Cursor_INFO&>(_AssignAndVerifyTableId (GetTableId (), static_cast<const Cursor&>(cursor))); /*lint !e1772 ('*this' is being returned from the called function) */ /*lint !e1774 (AssignAndVerifyTableId will make sure this is the right table id, so static_check is sufficient) */
} /*lint !e1529 (checking for assignment to 'this' in the called function) */
void Cursor_INFO::UpdateRow (
const INFO &columnValues
) const
{
Cursor::_UpdateRow (&columnValues);
}
void Cursor_INFO::ReadRow (
INFO &columnValues
) const
{
Cursor::_ReadRow (&columnValues);
}
void Cursor_INFO::Update_MYCHAR (
const char columnValue[51]
) const
{
_UpdateColumn (COL_INFO_MYCHAR, columnValue);
}
void Cursor_INFO::Read_MYCHAR (
char columnValue[51]
) const
{
_ReadColumn (COL_INFO_MYCHAR, columnValue);
}
Cursor_INFO::~Cursor_INFO ()
{
}