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 
00017 /* Finley: simple linked list to provide clear names for tag keys */
00018 
00019 /**************************************************************/
00020 
00021 #ifndef INC_FINLEY_TAGMAP
00022 #define INC_FINLEY_TAGMAP
00023 
00024 #include "Finley.h"
00025 
00026 
00027 typedef struct Finley_TagMap {
00028   char* name;
00029   index_t tag_key;
00030   struct Finley_TagMap *next;
00031 } Finley_TagMap;
00032 
00033 void Finley_TagMap_insert(Finley_TagMap**,const char* name, index_t tag_key);
00034 index_t Finley_TagMap_getTag(Finley_TagMap*,const char* name);
00035 bool_t Finley_TagMap_isValidTagName(Finley_TagMap*,const char* name);
00036 void Finley_TagMap_free(Finley_TagMap*);
00037 #endif /* #ifndef INC_FINLEY_TAGMAP */
00038