gnuradio / newsched

The GNU Radio 4.0 Runtime Proof Of Concept
GNU General Public License v3.0
22 stars 16 forks source link

Standardized types for templated ports/parameters #215

Open mormj opened 2 years ago

mormj commented 2 years ago

This was brought up by @dkozel in chat

Instead of specifying the c++ types and manually specifying the suffix, use standardized types for things in the yaml file

mormj commented 2 years ago

use these? https://github.com/gnuradio/SigMF/blob/sigmf-v1.x/sigmf-spec.md#sigmf-dataset-format

mormj commented 2 years ago

Went with the sigmf for typekeys Need to do the same for Parameters Just need a mapping of GR types to C++ and Python types

GR type C++ type Python Type
cf64 std::complex complex
cf32 std::complex complex
rf64 double float
rf32 float float
ri64 int64_t int
ri32 int32_t int
ri16 int16_t int
ri8 int8_t int
ru64 uint64_t int
ru32 uint32_t int
ru16 uint16_t int
ru8 uint8_t int
ci16 std::complex ??
size size_t int
string std::string string
bool bool bool