cgma
|
#include <algorithm>
#include <iostream>
#include "CATag.hpp"
#include "RefEntity.hpp"
#include "RefEntityName.hpp"
#include "RefEntityFactory.hpp"
#include "CubitAttribManager.hpp"
#include "RefGroup.hpp"
#include "TDUniqueId.hpp"
#include "CGMApp.hpp"
#include "iGeomError.h"
#include "TopologyEntity.hpp"
#include "CubitMessage.hpp"
Go to the source code of this file.
Classes | |
class | CSATagData |
Defines | |
#define | CHECK_SIZE(array, type, this_size, retval) |
#define | TAG_CHECK_SIZE(array, allocated, size) |
#define | RETURN(a) {CGM_iGeom_setLastError(a); return a;} |
Functions | |
static iBase_ErrorType | tag_check_size (char *&array, int &allocated, int size) |
Variables | |
static CGMTagManager::TagInfo | preset_tag_list [] |
Copyright 2006 Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with Sandia Coroporation, the U.S. Government retains certain rights in this software.
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
Original file from SNL TSTT repository was named CATag.
Renamed CATag and added to ANL ITAPS repository by J.Kraftcheck, 2007-6-15
Definition in file CATag.cpp.
#define CHECK_SIZE | ( | array, | |
type, | |||
this_size, | |||
retval | |||
) |
if (0 == array ## _allocated || array ## _allocated < this_size) {\ if (NULL != array) free(array); \ array = (type*)malloc(this_size*sizeof(type));\ array ## _allocated=this_size;\ if (NULL == array) { \ CGM_iGeom_setLastError(iBase_MEMORY_ALLOCATION_FAILED);\ return retval; \ }\ }; \ array ## _size = this_size;
#define RETURN | ( | a | ) | {CGM_iGeom_setLastError(a); return a;} |
#define TAG_CHECK_SIZE | ( | array, | |
allocated, | |||
size | |||
) |
if (iBase_ErrorType tag_check_size_tmp = tag_check_size( array, allocated, size )) \ return tag_check_size_tmp;
static iBase_ErrorType tag_check_size | ( | char *& | array, |
int & | allocated, | ||
int | size | ||
) | [inline, static] |
Definition at line 51 of file CATag.cpp.
{ if (!array || !allocated) { allocated = size; array = (char*)malloc(allocated); if (!array) return iBase_MEMORY_ALLOCATION_FAILED; } else if (allocated < size) { return iBase_BAD_ARRAY_SIZE; } return iBase_SUCCESS; }
CGMTagManager::TagInfo preset_tag_list[] [static] |
{ { 0, "", iBase_BYTES, NULL, false }, { 32, "NAME", iBase_BYTES, NULL, true }, { sizeof(int), "GLOBAL_ID", iBase_INTEGER, NULL, true }, { sizeof(int), "UNIQUE_ID", iBase_INTEGER, NULL, true }, { sizeof(int), "MESH_INTERVAL", iBase_INTEGER, NULL, true }, { sizeof(double), "MESH_SIZE", iBase_DOUBLE, NULL, true }, { 4, "SIZE_FIRMNESS", iBase_BYTES, NULL, true } }