#include <iostream>
#include <string.h>
#include <stdlib.h>
#include "hello_world_gen_api.h"
using namespace RDM_CPP::HELLO_WORLD;
static void hello_worldCPP (void)
{
Db_hello_world db;
try
{
{
std::cerr << "I can't open the hello_world database." << std::endl;
throw;
}
try
{
db.DeleteAllRows ();
{
db.EndRollback ();
throw;
}
db.StartUpdate (tables,
RDM_LEN (tables));
try
{
INFO infoInserted;
strcpy (
infoInserted.mychar, "Hello World CPP! - using the embedded TFS");
db.Insert_info_Row (infoInserted);
db.End ();
{
db.EndRollback ();
throw;
}
db.StartRead (tables,
RDM_LEN (tables));
try
{
Cursor_info cursor;
INFO infoRead;
cursor = db.Get_info_Rows ();
cursor.MoveToFirst ();
cursor.ReadRow (infoRead);
std::cout << infoRead.mychar << std::endl;
db.End ();
{
db.EndRollback ();
throw;
}
}
int32_t main_hello_worldCPPTutorial (int32_t argc, const char *const *argv)
{
try
{
hello_worldCPP ();
{
std::cerr <<
"There was an error in this Tutorial (" << e.
GetEnum ()
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}