cpp35Example.sdl

Schema for the cpp35Example_main.cpp example. Compile this schema using rdm-compile as follows:

rdm-compile --cpp-api --lc-cpp-methods --lc-struct-members cpp35Example.sdl

and include the generated header file(s) as follows:

#include "cpp35Example_structs.h"
#include "cpp35Example_cat.h"
#include "cpp35Example_gen_api.h"

and compile the following generated source file(s):

cpp35Example_cat.cpp
cpp35Example_gen.cpp

Here follows the actual schema:

CREATE TABLE rtree_table
(
id char(20) primary key,
rect DOUBLE ARRAY[4] KEY USING R_TREE NOT NULL
);