Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/include/ParticipantManagement/ppm_enums.hpp.stub
T

49 lines
1.0 KiB
Plaintext

// Stub file for ppm_enums.hpp - used when BUILD_RTI=OFF
#ifndef PPM_ENUMS_HPP
#define PPM_ENUMS_HPP
#include <cstdint>
#include <ostream>
namespace ParticipantManagement {
enum class ParticipantState : std::int32_t {
Active = 0,
Inactive = 1,
Suspended = 2
};
enum class ParticipantRole : std::int32_t {
Observer = 0,
Player = 1,
Controller = 2,
Admin = 3
};
enum class DataModification : std::int32_t {
eAdded = 0,
eModified = 1,
eRemoved = 2
};
enum class TypeClass : std::int32_t {
eUninitialized = 0,
ePlatform = 1,
ePerson = 2,
eEvent = 3
};
inline std::ostream& operator<<(std::ostream& os, TypeClass tc) {
switch (tc) {
case TypeClass::eUninitialized: os << "eUninitialized"; break;
case TypeClass::ePlatform: os << "ePlatform"; break;
case TypeClass::ePerson: os << "ePerson"; break;
case TypeClass::eEvent: os << "eEvent"; break;
default: os << "Unknown"; break;
}
return os;
}
} // namespace ParticipantManagement
#endif // PPM_ENUMS_HPP