{"id":22760482,"url":"https://github.com/funatsufumiya/ofxabseil","last_synced_at":"2025-03-30T08:44:13.390Z","repository":{"id":260579414,"uuid":"881733264","full_name":"funatsufumiya/ofxAbseil","owner":"funatsufumiya","description":"abseil for openFrameworks","archived":false,"fork":false,"pushed_at":"2024-11-02T02:48:28.000Z","size":2051,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T05:06:26.885Z","etag":null,"topics":["openframeworks-addon"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/funatsufumiya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-11-01T05:37:02.000Z","updated_at":"2024-11-03T12:31:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"037e98e2-bc7b-4826-8e5a-edca22362397","html_url":"https://github.com/funatsufumiya/ofxAbseil","commit_stats":null,"previous_names":["funatsufumiya/ofxabseil"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funatsufumiya%2FofxAbseil","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funatsufumiya%2FofxAbseil/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funatsufumiya%2FofxAbseil/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funatsufumiya%2FofxAbseil/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/funatsufumiya","download_url":"https://codeload.github.com/funatsufumiya/ofxAbseil/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246296562,"owners_count":20754632,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["openframeworks-addon"],"created_at":"2024-12-11T09:07:15.223Z","updated_at":"2025-03-30T08:44:13.382Z","avatar_url":"https://github.com/funatsufumiya.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ofxAbseil\n\n[abseil-cpp](https://github.com/abseil/abseil-cpp) for openFrameworks (tested on v0.12.0 Win/Mac/Linux/iOS, abseil version: `lts_2024_07_22`)\n\n## Notes\n\n- Some Windows workaround fixes (e.g. fix min/max problem, disable RawLog, etc) are applied.\n- `*_test.cc`, `*_benchmark.cc`, and related files are not included in this addon.\n- Already includes `gmock` and `gtest` from [googletest](https://github.com/google/googletest/) as dependencies.\n\n## Usage\n\nSee [example](example). (NOTE: Please use `projectGenerator` before run it)\n\n```cpp\n#include \"absl/strings/str_join.h\"\n#include \"absl/types/optional.h\"\n#include \"absl/hash/hash.h\"\n#include \"absl/container/flat_hash_map.h\"\n#include \"absl/types/any.h\"\n\nvoid ofApp::setup(){\n    ofLogToConsole();\n\n    // test of absl str_join\n\n    std::vector\u003cstd::string\u003e v = {\"foo\", \"bar\", \"baz\"};\n    std::string s = absl::StrJoin(v, \"-\");\n\n    ofLogNotice(\"ofApp\") \u003c\u003c \"absl::StrJoin(v, \\\"-\\\") = \" \u003c\u003c s;\n\n    // test of absl optional\n\n    absl::optional\u003cint\u003e o1 = 42;\n    absl::optional\u003cint\u003e o2 = absl::nullopt;\n    \n    ofLogNotice(\"ofApp\") \u003c\u003c \"absl::optional: o1 = \" \u003c\u003c o1.value_or(0);\n    ofLogNotice(\"ofApp\") \u003c\u003c \"absl::optional: o2 = \" \u003c\u003c o2.value_or(0);\n    \n    // test of absl hash\n    \n    absl::Hash\u003cstd::string\u003e hasher;\n    std::string str = \"hello\";\n    size_t hash = hasher(str);\n\n    ofLogNotice(\"ofApp\") \u003c\u003c \"absl::Hash\u003cstd::string\u003e: hash = \" \u003c\u003c hash;\n\n    // test of hash map of any type\n\n    absl::flat_hash_map\u003cstd::string, absl::any\u003e map;\n    map[\"int\"] = 42;\n    map[\"string\"] = std::string(\"hello\");\n\n    ofLogNotice(\"ofApp\") \u003c\u003c \"absl::flat_hash_map\u003cstd::string, absl::any\u003e: map[\\\"int\\\"] = \" \u003c\u003c absl::any_cast\u003cint\u003e(map[\"int\"]);\n    ofLogNotice(\"ofApp\") \u003c\u003c \"absl::flat_hash_map\u003cstd::string, absl::any\u003e: map[\\\"string\\\"] = \" \u003c\u003c absl::any_cast\u003cstd::string\u003e(map[\"string\"]);\n}\n\n// Result:\n// [notice ] ofApp: absl::StrJoin(v, \"-\") = foo-bar-baz\n// [notice ] ofApp: absl::optional: o1 = 42\n// [notice ] ofApp: absl::optional: o2 = 0\n// [notice ] ofApp: absl::Hash\u003cstd::string\u003e: hash = 8734633936850012531\n// [notice ] ofApp: absl::flat_hash_map\u003cstd::string, absl::any\u003e: map[\"int\"] = 42\n// [notice ] ofApp: absl::flat_hash_map\u003cstd::string, absl::any\u003e: map[\"string\"] = hello\n```\n\n## LICENSE\n\n- abseil: [Apache License 2.0](https://github.com/abseil/abseil-cpp/blob/master/LICENSE)\n- googletest: [BSD-3-Clause license](https://github.com/google/googletest/blob/main/LICENSE)\n\nNOTE: No specific copyright is claimed for this repository changes (for oF binding), but the [Apache License 2.0](LICENSE_APACHE) or [MIT License](LICENSE_MIT) can be applied if necessary.\n\n## Side notes\n\n- If you would like to use `std::ranges` alternative (not included in abseil), use [ofxRangeV3](https://github.com/funatsufumiya/ofxRangeV3)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunatsufumiya%2Fofxabseil","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffunatsufumiya%2Fofxabseil","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunatsufumiya%2Fofxabseil/lists"}