28 #include "MsqError.hpp"
50 for (msq_std::vector<TagData*>::iterator iter =
tagList.begin();
66 default: assert(0);
return 0;
76 size_t h =
handle( name, err );
158 return tagList[tag_index]->desc;
164 const size_t* index_array,
181 for (i = 0; i < num_indices; ++
i)
182 if (index_array[i] >= total)
183 total = index_array[
i] + 1;
205 const char* iter = (
const char*)values;
206 for (i = 0; i < num_indices; ++
i)
215 const size_t* index_array,
228 char* iter = (
char*)values;
231 for (
size_t i = 0;
i < num_indices; ++
i)
234 size_t index = index_array[
i];
246 ptr = data + index * tag->
desc.
size;
249 memcpy( iter, ptr, tag->
desc.
size );
256 const size_t* index_array,
273 for (i = 0; i < num_indices; ++
i)
274 if (index_array[i] >= total)
275 total = index_array[
i] + 1;
297 const char* iter = (
const char*)values;
298 for (i = 0; i < num_indices; ++
i)
307 const size_t* index_array,
320 char* iter = (
char*)values;
321 const char* data = (
const char*)tag->
vertexData;
323 for (
size_t i = 0;
i < num_indices; ++
i)
326 size_t index = index_array[
i];
338 ptr = data + index * tag->
desc.
size;
341 memcpy( iter, ptr, tag->
desc.
size );
383 while (index < tags->
tagList.size() || NULL == tags->tagList[index])
391 while (index < tags->
tagList.size() || NULL == tags->tagList[index])
400 while (index < tags->
tagList.size() || NULL == tags->tagList[index])
409 while (index < tags->
tagList.size() || NULL == tags->tagList[index])
Used to hold the error state and return it to the application.
TagType
The type of a tag.
msq_std::string name
Tag name.
Attempt to create tag that already exists.
double length(Vector3D *const v, int n)
invalid function argument passed
#define MSQ_SETERR(err)
Macro to set error - use err.clear() to clear.
Specified tag does not exist.
size_t size
Size of tag data (sizeof(type)*array_length)
Mesh::TagType type
Tag data type.