xo-object2: streamline IPrintable_DFloat + codegen

This commit is contained in:
Roland Conybeare 2026-01-15 00:50:12 -05:00
commit 028dea8047
5 changed files with 12 additions and 6 deletions

View file

@ -72,7 +72,7 @@ xo_add_genfacetimpl(
REPR Float
INPUT idl/IPrintable_DFloat.json5
OUTPUT_HPP_DIR include/xo/object2
OUTPUT_IMPL_SUBDIR .
OUTPUT_IMPL_SUBDIR number
OUTPUT_CPP_DIR src/object2
)

View file

@ -2,6 +2,7 @@
mode: "implementation",
includes: [ "<xo/printable2/Printable.hpp>",
"<xo/printable2/detail/IPrintable_Xfer.hpp>" ],
local_types: [ ],
namespace1: "xo",
namespace2: "scm",
facet_idl: "idl/Printable.json5",

View file

@ -2,17 +2,18 @@
*
* Generated automagically from ingredients:
* 1. code generator:
* [/home/roland/proj/xo-umbrella2/xo-facet/codegen/genfacet]
* [/Users/roland/proj/xo-umbrella2/xo-facet/codegen/genfacet]
* arguments:
* --input [idl/IPrintable_DFloat.json5]
* 2. jinja2 template for abstract facet .hpp file:
* [iface_facet_any.hpp.j2]
* [iface_facet_repr.hpp.j2]
* 3. idl for facet methods
* [idl/IPrintable_DFloat.json5]
**/
#pragma once
#include "Printable.hpp"
#include <xo/printable2/Printable.hpp>
#include <xo/printable2/detail/IPrintable_Xfer.hpp>
#include "DFloat.hpp"
@ -41,13 +42,17 @@ namespace xo {
/** @defgroup scm-printable-dfloat-type-traits **/
///@{
using ppindentinfo = xo::print::APrintable::ppindentinfo;
using Copaque = xo::print::APrintable::Copaque;
using Opaque = xo::print::APrintable::Opaque;
///@}
/** @defgroup scm-printable-dfloat-methods **/
///@{
// const methods
/** Pretty-printing support for this object.
See [xo-indentlog/xo/indentlog/pretty.hpp] **/
static bool pretty(const DFloat & self, const ppindentinfo & ppii);
// non-const methods
///@}
};

View file

@ -2,7 +2,7 @@
*
* Generated automagically from ingredients:
* 1. code generator:
* [/home/roland/proj/xo-umbrella2/xo-facet/codegen/genfacet]
* [/Users/roland/proj/xo-umbrella2/xo-facet/codegen/genfacet]
* arguments:
* --input [idl/IPrintable_DFloat.json5]
* 2. jinja2 template for abstract facet .hpp file:
@ -11,7 +11,7 @@
* [idl/IPrintable_DFloat.json5]
**/
#include "IPrintable_DFloat.hpp"
#include "number/IPrintable_DFloat.hpp"
namespace xo {
namespace scm {

View file

@ -11,7 +11,7 @@
#include <xo/object2/string/IGCObject_DString.hpp>
#include <xo/object2/list/IPrintable_DList.hpp>
#include <xo/object2/IPrintable_DFloat.hpp>
#include <xo/object2/number/IPrintable_DFloat.hpp>
#include <xo/object2/IPrintable_DInteger.hpp>
#include <xo/object2/string/IPrintable_DString.hpp>