This directory contains the example programs: choose the programming language
of your interest and pick-up the example you can use as a starting point to
develop your own custom software that uses libflom API.

C/C++ examples: basic_static.c basic_dynamic.c advanced_static.c 
	advanced_dynamic.c transactional.c
	BasicStatic.cc BasicDynamic.cc AdvancedStatic.cc AdvancedDynamic.cc
	Transactional.cc
How to compile a single program:
	make -f example_makefile <program name>
How to compile all the programs:
	make -f example_makefile

Before running:
	basic_static, basic_dynamic, transactional,
	BasicStatic, BasicDynamic, Transactional
you have to start a local FLoM daemon listening default local socket:
	flom -d -1 -- true

Before running:
	advanced_static, advanced_dynamic
	AdvancedStatic, AdvancedDynamic
you have to start a local FLoM daemon listening a specific local socket:
	flom -s /tmp/my_socket_name -d -1 -- true

To trace FLoM API calls you have to set FLOM_TRACE_MASK environment variable
(bash example):
	export FLOM_TRACE_MASK=0x80000
before program execution.

The directory /usr/lib64 may be already in your standard library path; in
the case it's not, you can use LD_LIBRARY_PATH environment variable before
executing the compiled programs:
	export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64
	./basic_static
	./basic_dynamic
	./advanced_static
	./advanced_dynamic
	./transactional
The same for C++ programs:
	export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64
	./BasicStatic
	./BasicDynamic
	./AdvancedStatic
	./AdvancedDynamic
	./Transactional

More exhaustive examples related to setter and getter methods provided by the
API are available in /home/abuild/rpmbuild/BUILD/flom-1.6.1-build/flom-1.6.1/tests/src dir:
	case0002.c	for the C language
	case1002.cc	for the C++ language
	case2002.php	for the PHP language
	case3002.py	for the Python language
	case4002.java	for the Java language
