{"action":"created","issue":{"url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/issues/1507","repository_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu","labels_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/issues/1507/labels{/name}","comments_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/issues/1507/comments","events_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/issues/1507/events","html_url":"https://github.com/ComputationalRadiationPhysics/picongpu/pull/1507","id":162673887,"number":1507,"title":"add trait `GetStringProperties`","user":{"login":"psychocoderHPC","id":4037125,"avatar_url":"https://avatars.githubusercontent.com/u/4037125?v=3","gravatar_id":"","url":"https://api.github.com/users/psychocoderHPC","html_url":"https://github.com/psychocoderHPC","followers_url":"https://api.github.com/users/psychocoderHPC/followers","following_url":"https://api.github.com/users/psychocoderHPC/following{/other_user}","gists_url":"https://api.github.com/users/psychocoderHPC/gists{/gist_id}","starred_url":"https://api.github.com/users/psychocoderHPC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psychocoderHPC/subscriptions","organizations_url":"https://api.github.com/users/psychocoderHPC/orgs","repos_url":"https://api.github.com/users/psychocoderHPC/repos","events_url":"https://api.github.com/users/psychocoderHPC/events{/privacy}","received_events_url":"https://api.github.com/users/psychocoderHPC/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/labels/feature","name":"feature","color":"84b6eb"},{"url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/labels/libPMacc","name":"libPMacc","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"ax3l","id":1353258,"avatar_url":"https://avatars.githubusercontent.com/u/1353258?v=3","gravatar_id":"","url":"https://api.github.com/users/ax3l","html_url":"https://github.com/ax3l","followers_url":"https://api.github.com/users/ax3l/followers","following_url":"https://api.github.com/users/ax3l/following{/other_user}","gists_url":"https://api.github.com/users/ax3l/gists{/gist_id}","starred_url":"https://api.github.com/users/ax3l/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ax3l/subscriptions","organizations_url":"https://api.github.com/users/ax3l/orgs","repos_url":"https://api.github.com/users/ax3l/repos","events_url":"https://api.github.com/users/ax3l/events{/privacy}","received_events_url":"https://api.github.com/users/ax3l/received_events","type":"User","site_admin":false},"assignees":[{"login":"ax3l","id":1353258,"avatar_url":"https://avatars.githubusercontent.com/u/1353258?v=3","gravatar_id":"","url":"https://api.github.com/users/ax3l","html_url":"https://github.com/ax3l","followers_url":"https://api.github.com/users/ax3l/followers","following_url":"https://api.github.com/users/ax3l/following{/other_user}","gists_url":"https://api.github.com/users/ax3l/gists{/gist_id}","starred_url":"https://api.github.com/users/ax3l/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ax3l/subscriptions","organizations_url":"https://api.github.com/users/ax3l/orgs","repos_url":"https://api.github.com/users/ax3l/repos","events_url":"https://api.github.com/users/ax3l/events{/privacy}","received_events_url":"https://api.github.com/users/ax3l/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-06-28T12:28:58Z","updated_at":"2016-06-28T12:31:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/pulls/1507","html_url":"https://github.com/ComputationalRadiationPhysics/picongpu/pull/1507","diff_url":"https://github.com/ComputationalRadiationPhysics/picongpu/pull/1507.diff","patch_url":"https://github.com/ComputationalRadiationPhysics/picongpu/pull/1507.patch"},"body":"- add trait `GetStringProperties<>`\r\n- add function `getStringProperties()`\r\n- add object `StringProperty`"},"comment":{"url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/issues/comments/229034928","html_url":"https://github.com/ComputationalRadiationPhysics/picongpu/pull/1507#issuecomment-229034928","issue_url":"https://api.github.com/repos/ComputationalRadiationPhysics/picongpu/issues/1507","id":229034928,"user":{"login":"psychocoderHPC","id":4037125,"avatar_url":"https://avatars.githubusercontent.com/u/4037125?v=3","gravatar_id":"","url":"https://api.github.com/users/psychocoderHPC","html_url":"https://github.com/psychocoderHPC","followers_url":"https://api.github.com/users/psychocoderHPC/followers","following_url":"https://api.github.com/users/psychocoderHPC/following{/other_user}","gists_url":"https://api.github.com/users/psychocoderHPC/gists{/gist_id}","starred_url":"https://api.github.com/users/psychocoderHPC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psychocoderHPC/subscriptions","organizations_url":"https://api.github.com/users/psychocoderHPC/orgs","repos_url":"https://api.github.com/users/psychocoderHPC/repos","events_url":"https://api.github.com/users/psychocoderHPC/events{/privacy}","received_events_url":"https://api.github.com/users/psychocoderHPC/received_events","type":"User","site_admin":false},"created_at":"2016-06-28T12:31:13Z","updated_at":"2016-06-28T12:31:13Z","body":"example:\r\n\r\n```C++\r\nnamespace PMacc\r\n{\r\nnamespace traits\r\n{\r\n    template< >\r\n    struct StringProperties< ::picongpu::leheSolver::LeheSolver >\r\n    {\r\n\r\n        static StringProperty get()\r\n        {\r\n            PMACC_AUTO(\r\n                prop,\r\n                ::picongpu::leheSolver::LeheSolver::getStringProperties()\r\n            );\r\n            prop[\"name\"].value = \"LeheSolver\";  // overwrite the name of the yee solver (inherit all other properties)\r\n            return prop;\r\n        }\r\n    };\r\n} // namespace traits\r\n} // namespace PMacc\r\n```\r\n\r\nor\r\n\r\n```C++\r\nstruct YeeSolver\r\n{\r\n// ...\r\n    static PMacc::traits::StringProperty getStringProperties()\r\n    {\r\n        PMacc::traits::StringProperty prop(\"name\",\"YeeSolver\");\r\n        prop[\"order\"] = \"2\";\r\n        return prop;\r\n    }\r\n// ...\r\n};\r\n```"}}
{"actor":{"display_login":"psychocoderHPC"}}