{"id":20986318,"url":"https://github.com/dheovani/reflectionsystem","last_synced_at":"2026-05-25T09:03:22.414Z","repository":{"id":244286214,"uuid":"814740745","full_name":"Dheovani/ReflectionSystem","owner":"Dheovani","description":"Easy to use Cpp Reflection System","archived":false,"fork":false,"pushed_at":"2024-08-08T16:55:21.000Z","size":75,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-27T20:46:00.273Z","etag":null,"topics":["cplusplus","cpp-reflection","cpp20","reflection","reflection-library"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Dheovani.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-13T15:53:40.000Z","updated_at":"2024-08-08T16:55:25.000Z","dependencies_parsed_at":"2025-01-20T07:31:40.763Z","dependency_job_id":"6e59a7b7-3a99-4b60-b2ad-e99005171df4","html_url":"https://github.com/Dheovani/ReflectionSystem","commit_stats":null,"previous_names":["dheovani/reflectionsystem"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Dheovani/ReflectionSystem","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dheovani%2FReflectionSystem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dheovani%2FReflectionSystem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dheovani%2FReflectionSystem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dheovani%2FReflectionSystem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dheovani","download_url":"https://codeload.github.com/Dheovani/ReflectionSystem/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dheovani%2FReflectionSystem/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33467429,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-25T06:32:55.349Z","status":"ssl_error","status_checked_at":"2026-05-25T06:32:35.322Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cplusplus","cpp-reflection","cpp20","reflection","reflection-library"],"created_at":"2024-11-19T06:13:04.327Z","updated_at":"2026-05-25T09:03:22.397Z","avatar_url":"https://github.com/Dheovani.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# C++ Reflection System\n\nWelcome to the C++ Reflection Library! This library provides a powerful and flexible way to add reflection capabilities to your C++ classes. With this library, you can easily introspect classes, their attributes, and methods at runtime. 🚀\n\n## 🌟 Features\n\n- Reflect on class attributes and methods.\n- Generate human-readable class information.\n- Easily extendable and customizable.\n- Minimal overhead and easy integration.\n\n## 📚 Installation\n\n1. Clone the repository:\n\n```sh\ngit clone https://github.com/Dheovani/ReflectionSystem.git\n```\n\n2. Include the header files in your project:\n\n```cpp\n#include \"reflection_system.h\"\n```\n\n## 🚀 Usage\nHere's a quick example to get you started:\n\n```cpp\n#include \u003ciostream\u003e\n#include \"reflection.h\"\n\nclass Base {};\n\nstruct BaseStruct {};\n\nclass Derived : public Base, public BaseStruct\n{\n    std::string str = \"string\";\n    static const long long fl = 5;\n\n    void func1() { std::cout \u003c\u003c \"func1\" \u003c\u003c std::endl; }\n    int func2() { return 0; }\n\npublic:\n    Derived() = default;\n\n    Derived(const std::string\u0026 s) : str(s)\n    {}\n\n    static void StaticMethod(void) { std::cout \u003c\u003c \"In the static method\" \u003c\u003c std::endl; }\n\n    void SetStr(const std::string\u0026 s) { this-\u003estr = s; }\n\n    UseReflectionTrait\n    (\n        Derived,\n        Attributes(str, fl),\n        Methods(func1, func2, StaticMethod, SetStr),\n        Parents(Base, BaseStruct)\n    )\n};\n\nint main(void)\n{\n    auto derived = Derived::GetInstance();\n    std::cout \u003c\u003c Derived::Classname() \u003c\u003c std::endl;\n    std::cout \u003c\u003c Derived::Size() \u003c\u003c std::endl;\n\n    return 0;\n}\n```\n\n## 📝 TODO\n\nHere are some tasks and improvements planned for the C++ Introspection System:\n\n- [x] 🛠️ **Add Support for Parent Classes**: Implement introspection for parents, allowing dynamic data gathering.\n- [x] 📚 **Documentation**: Expand the documentation with detailed usage examples and best practices.\n- [x] 🧪 **Testing**: Increase unit test coverage to ensure the robustness and reliability of the system.\n- [x] 🌐 **Multi-format Serialization Support**: Implement support for additional serialization formats, such as JSON.\n- [ ] 🔒 **Access Modifiers**: Find a way to verify if methods are either private, protected or public.\n\nFeel free to contribute to any of these tasks or suggest new features and improvements!\n\n## 🎓 Contributing\nContributions are welcome! Please feel free to submit a pull request or open an issue.\n\n## 📄 License\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE.txt) file for details.\n\n## 🙏 Acknowledgments\nSpecial thanks to the following projects for their inspiration and contributions to the C++ community:\n- [JsonCpp](https://github.com/open-source-parsers/jsoncpp)\n- [yaml-cpp](https://github.com/jbeder/yaml-cpp)\n- [tinyxml2](https://github.com/leethomason/tinyxml2)\n- [GoogleTest](https://github.com/google/googletest)\n\nHappy Coding! 😊","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdheovani%2Freflectionsystem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdheovani%2Freflectionsystem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdheovani%2Freflectionsystem/lists"}