escript
Revision_
|
00001 00002 /***************************************************************************** 00003 * 00004 * Copyright (c) 2003-2014 by University of Queensland 00005 * http://www.uq.edu.au 00006 * 00007 * Primary Business: Queensland, Australia 00008 * Licensed under the Open Software License version 3.0 00009 * http://www.opensource.org/licenses/osl-3.0.php 00010 * 00011 * Development until 2012 by Earth Systems Science Computational Center (ESSCC) 00012 * Development 2012-2013 by School of Earth Sciences 00013 * Development from 2014 by Centre for Geoscience Computing (GeoComp) 00014 * 00015 *****************************************************************************/ 00016 00017 /************************************************************************************/ 00018 00019 /* Dudley: simple link list to privide clear names for a tag keys */ 00020 00021 /************************************************************************************/ 00022 00023 #ifndef INC_DUDLEY_TAGMAP 00024 #define INC_DUDLEY_TAGMAP 00025 00026 #include "Dudley.h" 00027 00028 typedef struct Dudley_TagMap { 00029 char *name; 00030 index_t tag_key; 00031 struct Dudley_TagMap *next; 00032 } Dudley_TagMap; 00033 00034 void Dudley_TagMap_insert(Dudley_TagMap **, const char *name, index_t tag_key); 00035 index_t Dudley_TagMap_getTag(Dudley_TagMap *, const char *name); 00036 bool Dudley_TagMap_isValidTagName(Dudley_TagMap *, const char *name); 00037 void Dudley_TagMap_free(Dudley_TagMap *); 00038 #endif /* #ifndef INC_DUDLEY_TAGMAP */