x-stringtable2: streamline setup
This commit is contained in:
parent
d4c7f26c73
commit
263aa16cfb
8 changed files with 88 additions and 24 deletions
25
include/xo/stringtable2/SetupStringtable2.hpp
Normal file
25
include/xo/stringtable2/SetupStringtable2.hpp
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
/** @file SetupStringtable2.hpp
|
||||
*
|
||||
* @author Roland Conybeare, Mar 2026
|
||||
**/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <xo/alloc2/Collector.hpp>
|
||||
|
||||
namespace xo {
|
||||
namespace scm {
|
||||
struct SetupStringtable2 {
|
||||
public:
|
||||
using ACollector = xo::mm::ACollector;
|
||||
|
||||
public:
|
||||
/** Register object2 (facet,impl) combinations with FacetRegistry **/
|
||||
static bool register_facets();
|
||||
/** Register types with garbage collector **/
|
||||
static bool register_types(obj<ACollector> gc);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
/* end SetupStringtable2.hpp */
|
||||
|
|
@ -7,8 +7,6 @@
|
|||
|
||||
namespace xo {
|
||||
namespace scm {
|
||||
/** Register object2 (facet,impl) combinations with FacetRegistry **/
|
||||
bool stringtable2_register_facets();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -9,8 +9,6 @@
|
|||
|
||||
namespace xo {
|
||||
namespace scm {
|
||||
/** Register stringtable2 (facet,impl) combinations with FacetRegistry **/
|
||||
bool stringtable2_register_types(obj<xo::mm::ACollector> gc);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue