Add 'xo-printjson/' from commit '6743b9ef18'
git-subtree-dir: xo-printjson git-subtree-mainline:d49c309f80git-subtree-split:6743b9ef18
This commit is contained in:
commit
9c8e23577e
16 changed files with 1214 additions and 0 deletions
36
xo-printjson/src/printjson/init_printjson.cpp
Normal file
36
xo-printjson/src/printjson/init_printjson.cpp
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
/* file init_printjson.cpp
|
||||
*
|
||||
* author: Roland Conybeare, Sep 2022
|
||||
*/
|
||||
|
||||
#include "init_printjson.hpp"
|
||||
#include "PrintJson.hpp"
|
||||
#include "xo/reflect/init_reflect.hpp"
|
||||
#include "xo/subsys/Subsystem.hpp"
|
||||
|
||||
namespace xo {
|
||||
using xo::json::PrintJsonSingleton;
|
||||
|
||||
void
|
||||
InitSubsys<S_printjson_tag>::init()
|
||||
{
|
||||
/* create singleton */
|
||||
PrintJsonSingleton::instance();
|
||||
} /*init*/
|
||||
|
||||
InitEvidence
|
||||
InitSubsys<S_printjson_tag>::require()
|
||||
{
|
||||
InitEvidence retval;
|
||||
|
||||
/* subsystem dependencies for printjson/ */
|
||||
retval ^= InitSubsys<S_reflect_tag>::require();
|
||||
|
||||
/* printjson/'s own initialization code */
|
||||
retval ^= Subsystem::provide<S_printjson_tag>("printjson", &init);
|
||||
|
||||
return retval;
|
||||
} /*require*/
|
||||
} /*namespace xo*/
|
||||
|
||||
/* end init_printjson.cpp */
|
||||
Loading…
Add table
Add a link
Reference in a new issue