blob: 24f758634be2aec77c4acef18128a4a9bfb9679c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#ifndef SRDWM_PLATFORM_FACTORY_H
#define SRDWM_PLATFORM_FACTORY_H
#include "platform.h"
#include <memory>
#include <string>
#include <vector>
// Platform factory for creating platform-specific implementations
class PlatformFactory {
public:
// Create platform with automatic detection
static std::unique_ptr<Platform> create_platform();
// Create specific platform by name
static std::unique_ptr<Platform> create_platform(const std::string& platform_name);
// Get list of available platforms
static std::vector<std::string> get_available_platforms();
// Get current platform name
static std::string get_current_platform();
// Check if platform is available
static bool is_platform_available(const std::string& platform_name);
// Print platform information
static void print_platform_info();
private:
// Linux platform detection
static std::unique_ptr<Platform> detect_linux_platform();
};
#endif // SRDWM_PLATFORM_FACTORY_H
|