xo-object2: Printable+DList [WIP]
This commit is contained in:
parent
6b22aab6fb
commit
287fce9b7b
9 changed files with 142 additions and 11 deletions
57
xo-object2/include/xo/object2/IPrintable_DList.hpp
Normal file
57
xo-object2/include/xo/object2/IPrintable_DList.hpp
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
/** @file IPrintable_DList.hpp
|
||||
*
|
||||
* Generated automagically from ingredients:
|
||||
* 1. code generator:
|
||||
* [/home/roland/proj/xo-umbrella2/xo-facet/codegen/genfacet]
|
||||
* arguments:
|
||||
* --input [idl/IPrintable_DList.json5]
|
||||
* 2. jinja2 template for abstract facet .hpp file:
|
||||
* [iface_facet_any.hpp.j2]
|
||||
* 3. idl for facet methods
|
||||
* [idl/IPrintable_DList.json5]
|
||||
**/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <xo/printable2/Printable.hpp>
|
||||
#include <xo/printable2/detail/IPrintable_Xfer.hpp>
|
||||
#include "DList.hpp"
|
||||
|
||||
namespace xo { namespace scm { class IPrintable_DList; } }
|
||||
|
||||
namespace xo {
|
||||
namespace facet {
|
||||
template <>
|
||||
struct FacetImplementation<xo::print::APrintable,
|
||||
xo::scm::DList>
|
||||
{
|
||||
using ImplType = xo::print::IPrintable_Xfer
|
||||
<xo::scm::DList,
|
||||
xo::scm::IPrintable_DList>;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
namespace xo {
|
||||
namespace scm {
|
||||
/** @class IPrintable_DList
|
||||
**/
|
||||
class IPrintable_DList {
|
||||
public:
|
||||
/** @defgroup scm-printable-dlist-type-traits **/
|
||||
///@{
|
||||
using ppindentinfo = xo::print::APrintable::ppindentinfo;
|
||||
///@}
|
||||
/** @defgroup scm-printable-dlist-methods **/
|
||||
///@{
|
||||
/** Pretty-printing support for this object.
|
||||
See [xo-indentlog/xo/indentlog/pretty.hpp] **/
|
||||
static bool pretty(const DList & self, const ppindentinfo & ppii);
|
||||
|
||||
///@}
|
||||
};
|
||||
|
||||
} /*namespace scm*/
|
||||
} /*namespace xo*/
|
||||
|
||||
/* end */
|
||||
Loading…
Add table
Add a link
Reference in a new issue