I am not sure here, but do you think you could use the enum for PTypes here that we already have? and please avoid method body in the same line. Have it like
```c++
static const int get()
{
    return PT_UINT8; // if you think you can use that
}
```