| 197 | } |
| 198 | |
| 199 | void |
| 200 | MetaLine::M_SetupWriteFields() |
| 201 | { |
| 202 | MetaObject::M_SetupWriteFields(); |
| 203 | |
| 204 | MET_FieldRecordType * mF; |
| 205 | |
| 206 | char s[255]; |
| 207 | mF = new MET_FieldRecordType; |
| 208 | MET_TypeToString(m_ElementType, s); |
| 209 | MET_InitWriteField(mF, "ElementType", MET_STRING, strlen(s), s); |
| 210 | m_Fields.push_back(mF); |
| 211 | |
| 212 | if (strlen(m_PointDim) > 0) |
| 213 | { |
| 214 | mF = new MET_FieldRecordType; |
| 215 | MET_InitWriteField(mF, "PointDim", MET_STRING, strlen(m_PointDim), m_PointDim); |
| 216 | m_Fields.push_back(mF); |
| 217 | } |
| 218 | |
| 219 | m_NPoints = static_cast<int>(m_PointList.size()); |
| 220 | mF = new MET_FieldRecordType; |
| 221 | MET_InitWriteField(mF, "NPoints", MET_INT, m_NPoints); |
| 222 | m_Fields.push_back(mF); |
| 223 | |
| 224 | mF = new MET_FieldRecordType; |
| 225 | MET_InitWriteField(mF, "Points", MET_NONE); |
| 226 | m_Fields.push_back(mF); |
| 227 | } |
| 228 | |
| 229 | MET_ValueEnumType |
| 230 | MetaLine::ElementType() const |
nothing calls this directly
no test coverage detected