| 997 | } |
| 998 | |
| 999 | inline bool GetRepeatedVector(const char *pszFieldName, int index, Vector *out) |
| 1000 | { |
| 1001 | GETCHECK_FIELD(); |
| 1002 | CHECK_FIELD_TYPE(MESSAGE); |
| 1003 | CHECK_FIELD_REPEATED(); |
| 1004 | CHECK_REPEATED_ELEMENT(index); |
| 1005 | |
| 1006 | const CMsgVector &msgVec = (const CMsgVector &)msg->GetReflection()->GetRepeatedMessage(*msg, field, index); |
| 1007 | out->Init( |
| 1008 | msgVec.x(), |
| 1009 | msgVec.y(), |
| 1010 | msgVec.z() |
| 1011 | ); |
| 1012 | |
| 1013 | return true; |
| 1014 | } |
| 1015 | |
| 1016 | inline bool SetRepeatedVector(const char *pszFieldName, int index, Vector &vec) |
| 1017 | { |
no test coverage detected