Crimson Engine 1.0.0
A high-performance C++20 game engine prototype showcasing a custom ECS, Vulkan renderer, and ImGui editor.
Loading...
Searching...
No Matches
reflection_generator.cpp File Reference
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <vector>
#include <filesystem>
#include <regex>
#include <algorithm>

Classes

struct  ReflectedField
struct  ReflectedComponent
struct  ReflectedSystem

Functions

std::string trim (const std::string &str)
std::string getFieldTypeEnum (const std::string &type)
std::string getIncludePath (const fs::path &filePath, const fs::path &inputDir)
void parseHeader (const fs::path &filePath, const fs::path &inputDir, std::vector< ReflectedComponent > &outComponents, std::vector< ReflectedSystem > &outSystems)
int main (int argc, char *argv[])

Function Documentation

◆ getFieldTypeEnum()

std::string getFieldTypeEnum ( const std::string & type)

◆ getIncludePath()

std::string getIncludePath ( const fs::path & filePath,
const fs::path & inputDir )

◆ main()

int main ( int argc,
char * argv[] )

◆ parseHeader()

void parseHeader ( const fs::path & filePath,
const fs::path & inputDir,
std::vector< ReflectedComponent > & outComponents,
std::vector< ReflectedSystem > & outSystems )

◆ trim()

std::string trim ( const std::string & str)