Formats minimally release source files based on former clang-format

This commit is contained in:
torsten committed 2026-10-14 13:28:01 +00:00
1 parent b662e4daf9
commit 5644914fe3
387 files changed
+37323 -38074

No files matched your search

@@ -6,16 +6,19 @@
#include "tab_enums_stub.hpp"
namespace tab {
namespace db {
namespace tab
{
namespace db
{
// Stub class to replace RTI IDL-generated database types
class TrainingDatabase {
public:
virtual ~TrainingDatabase() = default;
};
// Stub class to replace RTI IDL-generated database types
class TrainingDatabase
{
public:
virtual ~TrainingDatabase() = default;
};
} // namespace db
} // namespace db
} // namespace tab
#endif // TAB_DB_STUB_HPP
#endif // TAB_DB_STUB_HPP
@@ -4,21 +4,24 @@
#ifndef TAB_ENUMS_STUB_HPP
#define TAB_ENUMS_STUB_HPP
namespace tab {
namespace tab
{
// Stub enums to replace RTI IDL-generated enums
enum class TrainingAreaType {
// Stub enums to replace RTI IDL-generated enums
enum class TrainingAreaType
{
Unknown = 0,
Standard = 1,
Advanced = 2
};
};
enum class TrainingStatus {
enum class TrainingStatus
{
Inactive = 0,
Active = 1,
Completed = 2
};
};
} // namespace tab
#endif // TAB_ENUMS_STUB_HPP
#endif // TAB_ENUMS_STUB_HPP
@@ -7,38 +7,41 @@
#include "tab_enums_stub.hpp"
#include <string>
namespace tab {
namespace tab
{
// Stub class to replace RTI IDL-generated TrainingArea type
class TrainingArea {
public:
// Stub class to replace RTI IDL-generated TrainingArea type
class TrainingArea
{
public:
TrainingArea() = default;
virtual ~TrainingArea() = default;
std::string getName() const { return m_name; }
void setName(const std::string& name) { m_name = name; }
void setName(const std::string &name) { m_name = name; }
TrainingAreaType getType() const { return m_type; }
void setType(TrainingAreaType type) { m_type = type; }
private:
private:
std::string m_name;
TrainingAreaType m_type = TrainingAreaType::Unknown;
};
};
// Stub class to replace RTI IDL-generated TrainingSession type
class TrainingSession {
public:
// Stub class to replace RTI IDL-generated TrainingSession type
class TrainingSession
{
public:
TrainingSession() = default;
virtual ~TrainingSession() = default;
TrainingStatus getStatus() const { return m_status; }
void setStatus(TrainingStatus status) { m_status = status; }
private:
private:
TrainingStatus m_status = TrainingStatus::Inactive;
};
};
} // namespace tab
#endif // TAB_STUB_HPP
#endif // TAB_STUB_HPP
@@ -3,25 +3,30 @@
#include "tab_enums_stub.hpp"
namespace tab {
namespace plugin {
namespace tab
{
namespace plugin
{
// Stub class to replace RTI IDL-generated topic type plugin
class TopicTypePlugin {
public:
virtual ~TopicTypePlugin() = default;
virtual bool initialize() { return true; }
virtual void shutdown() {}
};
// Stub class to replace RTI IDL-generated topic type plugin
class TopicTypePlugin
{
public:
virtual ~TopicTypePlugin() = default;
} // namespace plugin
virtual bool initialize() { return true; }
virtual void shutdown() {}
};
} // namespace plugin
} // namespace tab
// Export stub function
extern "C" {
tab::plugin::TopicTypePlugin* createTopicTypePlugin() {
static tab::plugin::TopicTypePlugin instance;
return &instance;
}
}
extern "C"
{
tab::plugin::TopicTypePlugin *createTopicTypePlugin()
{
static tab::plugin::TopicTypePlugin instance;
return &instance;
}
}