KVS Programming

When using a KVS class, you should always include a corresponding header file with the class name defined in name space kvs.

For example:

If you use the class "kvs::Vector3d",

you include the header

# include <kvs/Vector3>

Defined Type name

Correspondence table for the type name in KVS.

|

Defined type name in KVS

case with C++

kvs::Int8 char
kvs::UInt8 unsigned char
kvs::Int16 short
kvs::UInt16 unsigned short
kvs::Int32 int
kvs::UInt32 unsigned int
kvs::Real32 float
kvs::Real64 double
kvs::Real128 long double

 

Compile and execute

When compiling a KVS program, it is easy to use the automatic Makefile-generation tool kvsmake supplied by KVS. If an executable file should have the name sample_prog, do as follows:

# kvsmake -g sample_prog

# kvsmake

# ./sample_prog

The first command creats a file Makefile.kvs .

The second command is identical with

# make -f Makefile.kvs

 

 

 

Last Updated at Nov. 1, 2015 

 

TOP