Re: Review: Misc Yaml Updates
Malcolm Humphreys <malcolmh...@...>
Looking at this quickly it would be a pretty small patch to add out << YAML::NewLines(3);
toggle quoted messageShow quoted text
Something along the lines of: --emittermanip.h-- struct _NewLines { _NewLines(int value_): value(value_) {} int value; }; inline _NewLines NewLines(int value) { return _NewLines(value); } --emittermanip.h-- -- emitter.h -- ... Emitter& Write(const _NewLines& lines); ... inline Emitter& operator << (Emitter& emitter, const _NewLines& v) { return emitter.Write(v); } ... -- emitter.h -- -- emmiter.cpp -- Emitter& Emitter::Write(const _NewLines& lines) { if(!good()) return *this; for(unsigned int i=0; i< lines.value; ++i) m_stream << "\n"; return *this; } -- emmiter.cpp -- .malcolm
On 21/10/2010, at 11:24 AM, Malcolm Humphreys wrote:
This looks all pretty good to meA bunch of changes related to yaml serialization:- Can we call AddBaseTransformPropertiesToYAMLMap = EmitBaseTransformKeyValues
|
|