VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtProceduralSoundBehaviorFactory.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2026 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvAudio/vrvAudio.h>
14 
16 
17 #include <map>
18 #include <string>
19 
20 namespace makVrv
21 {
22  class DtProceduralSoundBehavior;
23  class DtDe;
24 
34  {
35  public:
36  using CreatorMap = std::map<std::string, DtProceduralSoundBehaviorCreator*>;
37 
39  static DtProceduralSoundBehaviorFactory& instance(DtDe& de);
40 
44  static void registerInstance(DtDe& de, DtProceduralSoundBehaviorFactory* factory);
45 
47  static const std::string& theClassName();
48 
51 
57  virtual void addBehaviorCreator(const std::string& key,
59 
68  virtual DtProceduralSoundBehavior* createBehavior(
69  const std::string& key,
70  const std::map<std::string, std::string>& params =
71  std::map<std::string, std::string>());
72 
75  virtual const CreatorMap& creators() const;
76 
77  protected:
79 
82  };
83 
84 } // namespace makVrv
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
std::map< std::string, DtProceduralSoundBehaviorCreator * > CreatorMap
Definition: DtProceduralSoundBehaviorFactory.h:36
DtDe & myDe
Definition: DtProceduralSoundBehaviorFactory.h:80
Abstract factory interface for creating a named DtProceduralSoundBehavior.
Definition: DtProceduralSoundBehaviorCreator.h:92
Contains the DLL export macro for vrvAudio classes.
Per-DtDe singleton factory for procedural sound behaviors.
Definition: DtProceduralSoundBehaviorFactory.h:33
Contains makVrv::DtVirtualBaseClass class.
Contains makVrv::DtProceduralSoundBehaviorCreator abstract base class.
CreatorMap myCreators
Definition: DtProceduralSoundBehaviorFactory.h:81
Optional per-channel behavior hook for DtProceduralSoundPlayer.
Definition: DtProceduralSoundBehavior.h:40
#define DT_DLL_VRVAUDIO
Definition: vrvAudio.h:20
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)