#include "Stroika/Foundation/StroikaPreComp.h"#include <ostream>#include "Stroika/Foundation/DataExchange/VariantValue.h"#include "Stroika/Foundation/Streams/OutputStream.h"#include "Writer.inl"Go to the source code of this file.
Classes | |
| class | Stroika::Foundation::DataExchange::Variant::Writer |
| abstract class specifying interface for writers VariantValue objects to serialized formats like JSON, CSV, XML, etc More... | |
Namespaces | |
| namespace | Stroika::Foundation |
| namespace | Stroika::Foundation::DataExchange |
Design Note: One question was whether or not to natively include support for istream sources or not. Its easy todo if not supported, by just using BinaryInputStreamFromIStreamAdapter. However, I decided it would be best to directly support it so typical users (who may not want to lookup those mapper classes) will just get the right results automagically.
Also note - since there are no virtual functions involved in the call, the linker/optimizer can eliminate the code if this feature isn't used.
This comports with a similar choice made in the String and Container classes (direct builtin first-class support for native STL objects where appropriate).
Definition in file Variant/Writer.h.