MeVisLab Toolbox Reference
WEMAttributes.h
Go to the documentation of this file.
1 /*************************************************************************************
2 **
3 ** Copyright 2007, MeVis Medical Solutions AG
4 **
5 ** The user may use this file in accordance with the license agreement provided with
6 ** the Software or, alternatively, in accordance with the terms contained in a
7 ** written agreement between the user and MeVis Medical Solutions AG.
8 **
9 ** For further information use the contact form at https://www.mevislab.de/contact
10 **
11 **************************************************************************************/
12 
13 #pragma once
14 
15 #include "MLWEMIncludes.h"
16 #include "WEMPersistenceHelper.h"
17 
18 ML_START_NAMESPACE
19 
21 
25 {
26 public:
28  void reset();
29 
31  std::string label;
33  std::string description;
34 
36  void saveTo(OutStreamWrapper& ostreamWrapper);
38  void loadFrom(FileMapWrapper& mapper, short version);
39 };
40 
43 
45 
46 ML_END_NAMESPACE
#define MLWEM_EXPORT
Definition: MLWEMSystem.h:18
Wraps a FileMap so we can handle errors and exceptions more easily.
This class comprises some attributes that are common for a WEM and a WEMPatch.
Definition: WEMAttributes.h:25
std::string label
Label string.
Definition: WEMAttributes.h:31
void reset()
Sets default values to all members.
void loadFrom(FileMapWrapper &mapper, short version)
Loads attributes from given memory map.
std::string description
Description string.
Definition: WEMAttributes.h:33
void saveTo(OutStreamWrapper &ostreamWrapper)
Saves attributes to given output stream.
bool MLWEM_EXPORT operator!=(const WEMAttributes &x, const WEMAttributes &y)
bool MLWEM_EXPORT operator==(const WEMAttributes &x, const WEMAttributes &y)