Mercurial > minori
view include/track/types.h @ 128:859d2a957940
cmake: set CXX_STANDARD to 17
builds: get wget on linux, don't attempt to mount binfmt_misc on win32/64
I'd prefer staying on C++11, but if constexpr is just so damn sexy...
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Thu, 09 Nov 2023 02:28:22 -0500 |
parents | 39521c47c7a3 |
children |
line wrap: on
line source
#ifndef __track__types_h #define __track__types_h #include <string> #include <vector> namespace Track { namespace Types { struct MediaPlayer { public: std::string GetName() const { return _name; }; std::string GetExecutable() const { return _executable; }; bool GetEnabled() const { return _enabled; }; void SetName(const std::string& name) { _name = name; }; void SetExecutable(const std::string& executable) { _executable = executable; }; void SetEnabled(const bool enabled) { _enabled = enabled; }; private: std::string _name; std::string _executable; bool _enabled; }; struct MediaExtension { public: std::string GetExtension() const { return _extension; }; bool GetEnabled() const { return _enabled; }; void SetExtension(const std::string& extension) { _extension = extension; }; void SetEnabled(const bool enabled) { _enabled = enabled; }; private: std::string _extension; bool _enabled; }; void LoadPlayers(std::vector<MediaPlayer>& players); void LoadExtensions(std::vector<MediaExtension>& extensions); void SavePlayers(const std::vector<MediaPlayer>& players); void SaveExtensions(const std::vector<MediaExtension>& extensions); } } #endif // __track__types_h