Stroika Library 3.0d16
 
Loading...
Searching...
No Matches
Reader.h File Reference
#include "Stroika/Foundation/StroikaPreComp.h"
#include <istream>
#include "Stroika/Foundation/DataExchange/VariantValue.h"
#include "Stroika/Foundation/Memory/SharedByValue.h"
#include "Stroika/Foundation/Streams/InputStream.h"
#include "Reader.inl"

Go to the source code of this file.

Classes

class  Stroika::Foundation::DataExchange::Variant::Reader
 abstract class specifying interface for readers that map a source like XML or JSON to a VariantValue objects More...
 

Namespaces

namespace  Stroika::Foundation
 
namespace  Stroika::Foundation::DataExchange
 

Detailed Description

Note
Code-Status: Beta

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/Reader.h.