Debian Codegraph @

plugins/sound/SoundShader.h

raw
1 #pragma once
2
3 #include <memory>
4
5 #include "isound.h"
6 #include "ifilesystem.h"
7 #include "decl/DeclarationBase.h"
8
9 namespace sound
10 {
11
12 /// Representation of a single sound shader.
13 class SoundShader final :
14 public decl::DeclarationBase<ISoundShader>
15 {
16 // Information we have parsed on demand
17 struct ParsedContents;
18 mutable std::unique_ptr<ParsedContents> _contents;
19
20 public:
21 using Ptr = std::shared_ptr<SoundShader>;
22
23 SoundShader(const std::string& name);
24
25 ~SoundShader();
26
27 // ISoundShader implementation
28 SoundRadii getRadii() override;
29 SoundFileList getSoundFileList() override;
30 const std::string& getDisplayFolder() override;
31
32 protected:
33 void onBeginParsing() override;
34 void parseFromTokens(parser::DefTokeniser& tokeniser) override;
35 };
36
37 }