Sleeping Wombat GUI  0.100
swGUI
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
uint64 AttributeType
Definition: AttributeTypes.h:12
std::string ChunkName
Definition: ChunkNameAttrib.h:23
Definition: DirectInputModule.cpp:11
virtual AttributeType GetType() override
Definition: ChunkNameAttrib.cpp:55
virtual Size ComputeSize() override
Definition: ChunkNameAttrib.cpp:47
DataUnderlayingType * DataPtr
Definition: AttributeTypes.h:14
virtual ~ChunkNameAttrib()=default
virtual bool ParseMemory(DataPtr data, Size size) override
Definition: ChunkNameAttrib.cpp:29
size_t Size
Definition: TypesDefinitions.h:35
Base attribute class.
Definition: IAttribute.h:18
ChunkNameAttrib()=default
virtual bool Save(DataPtr data, Size size) override
Definition: ChunkNameAttrib.cpp:37