2015-07-25 23:01:02 +00:00
|
|
|
/* Include this file once in the main translation unit of any executable file
|
|
|
|
* using HECL's database functionality (see driver/main.cpp)
|
|
|
|
*/
|
|
|
|
#ifdef DATA_SPEC_REGISTRY_HPP
|
|
|
|
#error DataSpecRegistry.hpp may only be included once
|
|
|
|
#endif
|
|
|
|
#define DATA_SPEC_REGISTRY_HPP
|
|
|
|
|
2016-03-04 23:02:44 +00:00
|
|
|
#include "hecl/Database.hpp"
|
2015-07-22 19:14:50 +00:00
|
|
|
|
2017-12-29 07:56:31 +00:00
|
|
|
namespace hecl::Database
|
2015-07-22 19:14:50 +00:00
|
|
|
{
|
|
|
|
/* Centralized registry for DataSpec lookup */
|
|
|
|
std::vector<const struct DataSpecEntry*> DATA_SPEC_REGISTRY;
|
|
|
|
}
|
|
|
|
|
2015-08-17 22:15:23 +00:00
|
|
|
@HECL_DATASPEC_DECLS@
|
2015-07-22 19:14:50 +00:00
|
|
|
|
2015-08-08 23:33:55 +00:00
|
|
|
/* Please Call Me! */
|
|
|
|
void HECLRegisterDataSpecs()
|
2015-07-22 19:14:50 +00:00
|
|
|
{
|
2015-08-17 22:15:23 +00:00
|
|
|
@HECL_DATASPEC_PUSHES@
|
2015-07-22 19:14:50 +00:00
|
|
|
}
|