Sleeping Wombat GUI  0.100
swGUI
IAttribute.h
Go to the documentation of this file.
1 #pragma once
2 
9 
10 
11 namespace sw
12 {
13 
14 
19 {
20 private:
21 protected:
22 public:
23  explicit IAttribute () = default;
24  virtual ~IAttribute () = default;
25 
26  virtual bool ParseMemory ( DataPtr data, Size size ) = 0;
27  virtual bool Save ( DataPtr data, Size size ) = 0;
28  virtual Size ComputeSize () = 0;
29  virtual AttributeType GetType () = 0;
30 };
31 
32 
34 
35 } // sw
uint64 AttributeType
Definition: AttributeTypes.h:12
Definition: DirectInputModule.cpp:11
virtual Size ComputeSize()=0
DataUnderlayingType * DataPtr
Definition: AttributeTypes.h:14
virtual AttributeType GetType()=0
size_t Size
Definition: TypesDefinitions.h:35
Base attribute class.
Definition: IAttribute.h:18
virtual ~IAttribute()=default
virtual bool ParseMemory(DataPtr data, Size size)=0
DEFINE_PTR_TYPE(AttributeRepr)
virtual bool Save(DataPtr data, Size size)=0
IAttribute()=default