2016-01-03 18:00:07 -05:00
|
|
|
namespace Components
|
|
|
|
{
|
|
|
|
class Flags : public Component
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Flags();
|
2016-08-15 10:40:30 -04:00
|
|
|
~Flags();
|
|
|
|
|
2016-09-16 05:04:28 -04:00
|
|
|
#if defined(DEBUG) || defined(FORCE_UNIT_TESTS)
|
2016-01-03 18:00:07 -05:00
|
|
|
const char* GetName() { return "Flags"; };
|
2016-08-15 10:40:30 -04:00
|
|
|
#endif
|
2016-01-03 18:00:07 -05:00
|
|
|
|
|
|
|
static bool HasFlag(std::string flag);
|
|
|
|
|
|
|
|
private:
|
|
|
|
static std::vector<std::string> EnabledFlags;
|
|
|
|
|
|
|
|
static void ParseFlags();
|
|
|
|
};
|
|
|
|
}
|