This example shows the declaration of a database. The configuration of the database example is defined in a descriptive way. If you want to learn more about how to define a configuration by declaring first the data members and then the description for introspection, you will find an example at Descriptive configuration declaration example
#include <string>
class MyDatabaseConfig
{
public:
{
}
MyDatabaseConfig( const char* title, const char* logprefix)
:_Wolframe::serialize::DescriptiveConfiguration( title, "database", logprefix, getStructDescription())
{
}
};
class MyDatabase;
class MyTransactionExecStatemachine
{
public:
MyTransactionExecStatemachine( MyDatabase* database)
{
}
{
static const std::string my_databaseID("mydb");
return my_databaseID;
}
{
}
{
}
{
}
virtual bool start(
const std::string& statement)
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
{
}
};
class MyDatabase
{
public:
MyDatabase( const MyDatabaseConfig& config)
{
}
virtual const std::string&
ID()
const
{
static const std::string my_ID("mydb");
return my_ID;
}
{
return "MyDatabase";
}
{
}
{
return &langdescr;
}
};