39#ifndef DRAIN_CLASS_XML
40#define DRAIN_CLASS_XML
48#include "ReferenceMap.h"
49#include "TreeUnordered.h"
90 const std::string & strPrefixed()
const {
100 std::string prefixed;
114 template <
typename ... TT>
121 template <
typename ... TT>
123 void add(
const std::string & arg,
const TT &... args) {
130 template <
typename ... TT>
132 void add(
const char *arg,
const TT &... args) {
133 add(std::string(arg), args...);
143 template <
typename E,
typename ...TT>
145 void add(
const E & arg,
const TT &... args) {
170 bool has(
const std::string & arg)
const {
171 return (find(arg) != end());
175 bool has(
const char *arg)
const {
176 return (find(arg) != end());
179 template <
typename E>
181 bool has(
const E & arg)
const {
187 void remove(
const std::string & arg) {
188 iterator it = find(arg);
207std::ostream & operator<<(std::ostream &ostr,
const ClassListXML & cls){
Container for style classes. Essentially a set of strings, with space-separated output support.
Definition ClassXML.h:110
void add(const std::string &arg, const TT &... args)
Add one or several classes.
Definition ClassXML.h:123
void add(const E &arg, const TT &... args)
Add one or several classes.
Definition ClassXML.h:145
static const SprinterLayout layout
Uses spaces as separators.
Definition ClassXML.h:196
A wrapper marking string an CSS effect.
Definition ClassXML.h:57
Definition EnumUtils.h:215
static std::ostream & sequenceToStream(std::ostream &ostr, const T &x, const SprinterLayout &layout)
Convenience: if sequence type (array, list, set, map) not given, assume array.
Definition Sprinter.h:325
Definition DataSelector.cpp:1277
A container for a static dictionary of enumeration values.
Definition EnumUtils.h:52
Definition Sprinter.h:137