ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkWasmDataObject.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * https://www.apache.org/licenses/LICENSE-2.0.txt
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 *=========================================================================*/
18#ifndef itkWasmDataObject_h
19#define itkWasmDataObject_h
20#include "WebAssemblyInterfaceExport.h"
21
22#include "itkDataObject.h"
23
24namespace itk
25{
35class WebAssemblyInterface_EXPORT WasmDataObject : public DataObject
36{
37public:
38 ITK_DISALLOW_COPY_AND_MOVE(WasmDataObject);
39
45 itkNewMacro(Self);
46 itkOverrideGetNameOfClassMacro(WasmDataObject);
47
49 itkSetStringMacro(JSON);
50 virtual const std::string &
51 GetJSON() const
52 {
53 return this->m_JSON;
54 }
55
59 itkGetConstObjectMacro(DataObject, DataObject);
60 itkSetObjectMacro(DataObject, DataObject);
61
62protected:
63 WasmDataObject() = default;
64 ~WasmDataObject() override = default;
65 void
66 PrintSelf(std::ostream & os, Indent indent) const override;
67
68 std::string m_JSON;
70};
71
72} // end namespace itk
73
74#endif
SmartPointer< const Self > ConstPointer
Control indentation during Print() invocation.
Definition itkIndent.h:53
Implements transparent reference counting.
virtual const std::string & GetJSON() const
SmartPointer< const Self > ConstPointer
DataObject::ConstPointer m_DataObject
SmartPointer< Self > Pointer
~WasmDataObject() override=default
WasmDataObject()=default
void PrintSelf(std::ostream &os, Indent indent) const override
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....