progress on sandbox.cpp
This commit is contained in:
parent
20d6a77275
commit
7a6de4053a
|
|
@ -1,15 +1,19 @@
|
|||
#include "matador/object/schema.hpp"
|
||||
|
||||
#include "matador/logger/log_manager.hpp"
|
||||
|
||||
#include "author.hpp"
|
||||
#include "book.hpp"
|
||||
|
||||
using namespace demo;
|
||||
using namespace matador;
|
||||
int main() {
|
||||
object::schema tree;
|
||||
logger::default_min_log_level(logger::log_level::LVL_DEBUG);
|
||||
logger::add_log_sink(logger::create_stdout_sink());
|
||||
|
||||
object::schema schema;
|
||||
|
||||
tree.attach<author>("authors");
|
||||
tree.attach<book>("books");
|
||||
auto result = schema.attach<author>("authors")
|
||||
.and_then([&schema] { return schema.attach<book>("books"); });
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue