VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
scenarioDataManager.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright (c) 2026 MAK Technologies, Inc.
3  * All rights reserved.
4  ******************************************************************************/
5 
6 #pragma once
7 
8 #include <string>
9 
45 {
46 public:
49 
53  void initialize(const std::string& scenariosBaseDir);
54 
65  void onScenarioChanged(const std::string& vrfScenarioPath,
66  const std::string& terrainName);
67 
70  std::string currentScenarioFolder() const;
71 
72 private:
73  DtScenarioDataManager() = default;
74 
77  static std::string extractFilename(const std::string& path);
78 
80  static char pathSep();
81 
82  std::string myScenariosBaseDir;
84 };
std::string currentScenarioFolder() const
Returns the path to the currently active scenario data folder. Useful for diagnostics; empty until in...
static std::string extractFilename(const std::string &path)
Returns the scenario key from a path (e.g. &quot;BombMission&quot; for &quot;BombMission.scnx&quot;). Returns an empty st...
std::string myScenariosBaseDir
Definition: scenarioDataManager.h:82
void initialize(const std::string &scenariosBaseDir)
Sets the base directory for scenario data and primes all subsystems with the &quot;default&quot; folder...
static DtScenarioDataManager & getInstance()
Returns the process-wide singleton instance.
void onScenarioChanged(const std::string &vrfScenarioPath, const std::string &terrainName)
Called whenever the active VRF scenario or terrain changes.
std::string myCurrentScenarioFolder
Definition: scenarioDataManager.h:83
DtScenarioDataManager()=default
DtScenarioDataManager — manages per-scenario data stored by the web server.
Definition: scenarioDataManager.h:44
static char pathSep()
Returns the path separator character for the current platform.

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)