| 967 | } |
| 968 | |
| 969 | inline bool GetVector(const char *pszFieldName, Vector *out) |
| 970 | { |
| 971 | GETCHECK_FIELD(); |
| 972 | CHECK_FIELD_TYPE(MESSAGE); |
| 973 | CHECK_FIELD_NOT_REPEATED(); |
| 974 | |
| 975 | const CMsgVector &msgVec = (const CMsgVector &)msg->GetReflection()->GetMessage(*msg, field); |
| 976 | out->Init( |
| 977 | msgVec.x(), |
| 978 | msgVec.y(), |
| 979 | msgVec.z() |
| 980 | ); |
| 981 | |
| 982 | return true; |
| 983 | } |
| 984 | |
| 985 | inline bool SetVector(const char *pszFieldName, Vector &vec) |
| 986 | { |
no test coverage detected