Sleeping Wombat Common Library  0.50.0
swCommonLibrary
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 
33 DEFINE_PTR_TYPE( IAttribute );
34 
35 } // sw
Definition: Exception.h:11
Base attribute class.
Definition: IAttribute.h:18