#include #include #include #include #include "enginedata.h" using namespace std; map tables; int main(int argc,char **argv){ ColHeader *header=new ColHeader[3]; header[0]={RH_INT32,0}; header[1]={RH_UINT32,0}; header[2]={RH_BYTES,10}; tables.emplace("hoi",Table("hoi",3,header)); Table *hoitb=&tables.at("hoi"); Row row(3,hoitb); row.items[0].u.rh_int32=42; row.items[1].u.rh_uint32=42; row.items[2].u.rh_bytes=new unsigned char[10]; strcpy((char*)row.items[2].u.rh_bytes,"hallo daar"); hoitb->insert(row); cout<<"hoitb has "<rows.size()<<" row"<<(hoitb->rows.size()==1?"":"s")<