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