Sleeping Wombat Common Library  0.50.0
swCommonLibrary
ChunkNameAttrib.h
Go to the documentation of this file.
1 #pragma once
2 
9 #include "IAttribute.h"
10 
11 #include <string>
12 
13 
14 
15 namespace sw
16 {
17 
20 {
21 public:
22 
23  std::string ChunkName;
24 
25 protected:
26 public:
27  explicit ChunkNameAttrib () = default;
28  explicit ChunkNameAttrib ( const std::string& name );
29  explicit ChunkNameAttrib ( std::string&& name );
30  virtual ~ChunkNameAttrib () = default;
31 
32 
33  // Inherited via IAttribute
34  virtual bool ParseMemory ( DataPtr data, Size size ) override;
35  virtual bool Save ( DataPtr data, Size size ) override;
36  virtual Size ComputeSize () override;
37  virtual AttributeType GetType () override;
38 
39 };
40 
41 
42 
43 
44 } // sw
45 
46 
Definition: ChunkNameAttrib.h:19
Definition: Exception.h:11
Base attribute class.
Definition: IAttribute.h:18