| 815 | } |
| 816 | |
| 817 | inline bool GetColor(const char *pszFieldName, Color *out) |
| 818 | { |
| 819 | GETCHECK_FIELD(); |
| 820 | CHECK_FIELD_TYPE(MESSAGE); |
| 821 | CHECK_FIELD_NOT_REPEATED(); |
| 822 | |
| 823 | const CMsgRGBA &msgRGBA = (const CMsgRGBA &)msg->GetReflection()->GetMessage(*msg, field); |
| 824 | out->SetColor( |
| 825 | msgRGBA.r(), |
| 826 | msgRGBA.g(), |
| 827 | msgRGBA.b(), |
| 828 | msgRGBA.a() |
| 829 | ); |
| 830 | |
| 831 | return true; |
| 832 | } |
| 833 | |
| 834 | inline bool SetColor(const char *pszFieldName, const Color &value) |
| 835 | { |
no test coverage detected