Data Structures | Defines | Functions

env3.cpp File Reference

#include <iostream>
#include <stdlib.h>
#include <ham/hamsterdb.hpp>

Go to the source code of this file.

Data Structures

struct  customer_t
struct  order_t

Defines

#define MAX_DBS   3
#define DBNAME_CUSTOMER   1
#define DBNAME_ORDER   2
#define DBNAME_C2O   3
#define DBIDX_CUSTOMER   0
#define DBIDX_ORDER   1
#define DBIDX_C2O   2
#define MAX_CUSTOMERS   4
#define MAX_ORDERS   8

Functions

int run_demo (void)
int main (int argc, char **argv)

Define Documentation

#define DBIDX_C2O   2

Definition at line 27 of file env3.cpp.

#define DBIDX_CUSTOMER   0

Definition at line 25 of file env3.cpp.

#define DBIDX_ORDER   1

Definition at line 26 of file env3.cpp.

#define DBNAME_C2O   3

Definition at line 23 of file env3.cpp.

Referenced by run_demo().

#define DBNAME_CUSTOMER   1

Definition at line 21 of file env3.cpp.

Referenced by run_demo().

#define DBNAME_ORDER   2

Definition at line 22 of file env3.cpp.

Referenced by run_demo().

#define MAX_CUSTOMERS   4

Definition at line 29 of file env3.cpp.

#define MAX_DBS   3

Copyright (C) 2005-2007 Christoph Rupp (chris@crupp.de).

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

See files COPYING.* for License information.

This sample does the same as env2, but uses the C++ API.

Definition at line 19 of file env3.cpp.

#define MAX_ORDERS   8

Definition at line 30 of file env3.cpp.


Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 268 of file env3.cpp.

References ham::error::get_errno(), ham::error::get_string(), and run_demo().

int run_demo ( void   )