#include <itkWasmStringStream.h>
JSON representation for a std::stringstream.
JSON representation for a std::stringstream for interfacing across programming languages and runtimes.
{ size: sizeInBytes, data: stringDataURI }
When representing text objects, data is not expected to include a C null termination character and sizeInBytes does not include this character.
Arrays:
Definition at line 54 of file itkWasmStringStream.h.
Inheritance diagram for itk::WasmStringStream:
Collaboration diagram for itk::WasmStringStream:Public Types | |
| using | ConstPointer = SmartPointer<const Self> |
| using | Pointer = SmartPointer<Self> |
| using | Self = WasmStringStream |
| using | Superclass = WasmDataObject |
Public Types inherited from itk::WasmDataObject | |
| using | ConstPointer = SmartPointer<const Self> |
| using | Pointer = SmartPointer<Self> |
| using | Self = WasmDataObject |
| using | Superclass = DataObject |
Public Types inherited from itk::DataObject | |
| using | ConstPointer = SmartPointer<const Self> |
| using | DataObjectIdentifierType = std::string |
| using | DataObjectPointerArraySizeType = std::vector<Pointer>::size_type |
| using | Pointer = SmartPointer<Self> |
| using | Self = DataObject |
| using | Superclass = Object |
Public Types inherited from itk::Object | |
| using | ConstPointer = SmartPointer<const Self> |
| using | Pointer = SmartPointer<Self> |
| using | Self = Object |
| using | Superclass = LightObject |
Public Types inherited from itk::LightObject | |
| using | ConstPointer = SmartPointer<const Self> |
| using | Pointer = SmartPointer<Self> |
| using | Self = LightObject |
Public Member Functions | |
| virtual::itk::LightObject::Pointer | CreateAnother () const |
| virtual const char * | GetNameOfClass () const |
| const std::string & | GetString () |
| std::stringstream & | GetStringStream () |
| void | SetJSON (const char *jsonChar) override |
| void | SetString (const std::string &string) |
Public Member Functions inherited from itk::WasmDataObject | |
| virtual const DataObject * | GetDataObject () const |
| virtual const std::string & | GetJSON () const |
| virtual void | SetDataObject (DataObject *_arg) |
Public Member Functions inherited from itk::DataObject | |
| virtual void | CopyInformation (const DataObject *) |
| virtual void | DataHasBeenGenerated () |
| void | DisconnectPipeline () |
| bool | GetDataReleased () const |
| virtual const bool & | GetReleaseDataFlag () const |
| SmartPointer< ProcessObject > | GetSource () const |
| DataObjectPointerArraySizeType | GetSourceOutputIndex () const |
| const DataObjectIdentifierType & | GetSourceOutputName () const |
| virtual ModifiedTimeType | GetUpdateMTime () const |
| virtual void | Graft (const DataObject *) |
| virtual void | Initialize () |
| virtual void | PrepareForNewData () |
| virtual void | PropagateRequestedRegion () |
| void | ReleaseData () |
| virtual void | ReleaseDataFlagOff () |
| virtual void | ReleaseDataFlagOn () |
| virtual bool | RequestedRegionIsOutsideOfTheBufferedRegion () |
| virtual void | ResetPipeline () |
| void | SetReleaseDataFlag (bool flag) |
| virtual void | SetRequestedRegion (const DataObject *) |
| virtual void | SetRequestedRegionToLargestPossibleRegion () |
| bool | ShouldIReleaseData () const |
| virtual void | Update () |
| virtual void | UpdateOutputData () |
| virtual void | UpdateOutputInformation () |
| void | UpdateSource () const |
| virtual bool | VerifyRequestedRegion () |
| void | SetPipelineMTime (ModifiedTimeType time) |
| virtual const ModifiedTimeType & | GetPipelineMTime () const |
| virtual void | SetRealTimeStamp (RealTimeStamp _arg) |
| virtual const RealTimeStamp & | GetRealTimeStamp () const |
Public Member Functions inherited from itk::Object | |
| unsigned long | AddObserver (const EventObject &event, Command *cmd) const |
| unsigned long | AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const |
| virtual void | DebugOff () const |
| virtual void | DebugOn () const |
| Command * | GetCommand (unsigned long tag) |
| bool | GetDebug () const |
| MetaDataDictionary & | GetMetaDataDictionary () |
| const MetaDataDictionary & | GetMetaDataDictionary () const |
| virtual ModifiedTimeType | GetMTime () const |
| virtual const TimeStamp & | GetTimeStamp () const |
| bool | HasObserver (const EventObject &event) const |
| void | InvokeEvent (const EventObject &) |
| void | InvokeEvent (const EventObject &) const |
| virtual void | Modified () const |
| void | Register () const override |
| void | RemoveAllObservers () |
| void | RemoveObserver (unsigned long tag) const |
| void | SetDebug (bool debugFlag) const |
| void | SetReferenceCount (int) override |
| void | UnRegister () const noexcept override |
| void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
| void | SetMetaDataDictionary (MetaDataDictionary &&rrhs) |
| virtual void | SetObjectName (std::string _arg) |
| virtual const std::string & | GetObjectName () const |
Public Member Functions inherited from itk::LightObject | |
| Pointer | Clone () const |
| virtual void | Delete () |
| virtual int | GetReferenceCount () const |
| void | Print (std::ostream &os, Indent indent=0) const |
Static Public Member Functions | |
| static Pointer | New () |
Static Public Member Functions inherited from itk::WasmDataObject | |
| static Pointer | New () |
Static Public Member Functions inherited from itk::DataObject | |
| static bool | GetGlobalReleaseDataFlag () |
| static void | GlobalReleaseDataFlagOff () |
| static void | GlobalReleaseDataFlagOn () |
| static Pointer | New () |
| static void | SetGlobalReleaseDataFlag (bool val) |
Static Public Member Functions inherited from itk::Object | |
| static bool | GetGlobalWarningDisplay () |
| static void | GlobalWarningDisplayOff () |
| static void | GlobalWarningDisplayOn () |
| static Pointer | New () |
| static void | SetGlobalWarningDisplay (bool val) |
Static Public Member Functions inherited from itk::LightObject | |
| static void | BreakOnError () |
| static Pointer | New () |
Protected Member Functions | |
| void | PrintSelf (std::ostream &os, Indent indent) const override |
| void | UpdateJSON () |
| WasmStringStream ()=default | |
| ~WasmStringStream () override=default | |
Protected Member Functions inherited from itk::WasmDataObject | |
| WasmDataObject ()=default | |
| ~WasmDataObject () override=default | |
Protected Member Functions inherited from itk::DataObject | |
| DataObject () | |
| virtual void | PropagateResetPipeline () |
| ~DataObject () override | |
Protected Member Functions inherited from itk::Object | |
| Object () | |
| bool | PrintObservers (std::ostream &os, Indent indent) const |
| virtual void | SetTimeStamp (const TimeStamp &timeStamp) |
| ~Object () override | |
Protected Member Functions inherited from itk::LightObject | |
| virtual LightObject::Pointer | InternalClone () const |
| LightObject () | |
| virtual void | PrintHeader (std::ostream &os, Indent indent) const |
| virtual void | PrintTrailer (std::ostream &os, Indent indent) const |
| virtual | ~LightObject () |
Private Attributes | |
| std::string | m_String |
| std::stringstream | m_StringStream |
Additional Inherited Members | |
Protected Attributes inherited from itk::WasmDataObject | |
| DataObject::ConstPointer | m_DataObject |
| std::string | m_JSON |
Protected Attributes inherited from itk::LightObject | |
| std::atomic< int > | m_ReferenceCount {} |
| using itk::WasmStringStream::ConstPointer = SmartPointer<const Self> |
Definition at line 63 of file itkWasmStringStream.h.
Definition at line 62 of file itkWasmStringStream.h.
Standard class type aliases.
Definition at line 60 of file itkWasmStringStream.h.
Definition at line 61 of file itkWasmStringStream.h.
|
protecteddefault |
Referenced by GetNameOfClass().
|
overrideprotecteddefault |
|
virtual |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::WasmDataObject.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::WasmDataObject.
References WasmStringStream().
|
inline |
Definition at line 77 of file itkWasmStringStream.h.
References m_String, and m_StringStream.
|
inline |
Definition at line 84 of file itkWasmStringStream.h.
References m_StringStream.
|
static |
Referenced by itk::wasm::OutputStreamBase::SetIdentifier().
|
overrideprotectedvirtual |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::WasmDataObject.
|
inlineoverridevirtual |
Get/Set the DataObject JSON representation.
Reimplemented from itk::WasmDataObject.
Definition at line 90 of file itkWasmStringStream.h.
References m_StringStream, and itk::WasmDataObject::SetJSON().
|
inline |
Definition at line 70 of file itkWasmStringStream.h.
References m_StringStream, and UpdateJSON().
|
inlineprotected |
Definition at line 115 of file itkWasmStringStream.h.
References itk::WasmDataObject::m_JSON, and m_StringStream.
Referenced by SetString().
|
private |
Definition at line 131 of file itkWasmStringStream.h.
Referenced by GetString().
|
private |
Definition at line 130 of file itkWasmStringStream.h.
Referenced by GetString(), GetStringStream(), SetJSON(), SetString(), and UpdateJSON().