Statistics
| Revision:

svn-gvsig-desktop / trunk / libraries / libjni-mrsid-macosx / include / metadata / lti_metadataUtils.h @ 9099

History | View | Annotate | Download (2.27 KB)

1
/* $Id: lti_metadataUtils.h 9099 2006-11-29 12:16:22Z mija $ */
2
/* //////////////////////////////////////////////////////////////////////////
3
//                                                                         //
4
// This code is Copyright (c) 2004 LizardTech, Inc, 1008 Western Avenue,   //
5
// Suite 200, Seattle, WA 98104.  Unauthorized use or distribution         //
6
// prohibited.  Access to and use of this code is permitted only under     //
7
// license from LizardTech, Inc.  Portions of the code are protected by    //
8
// US and foreign patents and other filings. All Rights Reserved.          //
9
//                                                                         //
10
////////////////////////////////////////////////////////////////////////// */
11
/* PUBLIC */
12

    
13
#ifndef LTI_METADATAUTILS_H
14
#define LTI_METADATAUTILS_H
15

    
16
// lt_lib_base
17
#include "lt_base.h"
18

    
19
// lt_lib_mrsid_metadata
20
#include "lti_metadataTypes.h"
21

    
22

    
23
LT_BEGIN_NAMESPACE(LizardTech)
24

    
25
#if defined(LT_COMPILER_MS)
26
   #pragma warning(push,4)
27
#endif
28

    
29

    
30

    
31
/**
32
 * useful metadata type and tag functions
33
 *
34
 * This class contains several static utility functions useful for
35
 * operating with tag names, tag numbers, and datatypes.
36
 */
37
class LTIMetadataUtils
38
{
39
public:
40
   /**
41
    * get numeric value of tag name
42
    *
43
    * This function returns the enum associated with a given tag name.
44
    * It will return LTI_METADATA_TAG_Unknown if the string is not known.
45
    *
46
    * @param tagName the tagName
47
    * @return the enum corresponding to \a tagName
48
    */
49
   static LTIMetadataTag lookupTag(const char* tagName);
50

    
51
   /**
52
    * get string value of numeric tag name
53
    *
54
    * This function returns the string associated with a given tag enum.
55
    * It will return NULL if the tag enum is not known.
56
    *
57
    * @param tag the tag number
58
    * @return the string corresponding to \a tag
59
    */
60
   static const char* lookupName(LTIMetadataTag tag);
61

    
62
   /**
63
    * get string representation of datatype
64
    *
65
    * This function returns a string representation of the given datatype,
66
    * useful for debugging.
67
    *
68
    * @param dataType the datatype to use
69
    * @return the string version of the given datatype
70
    */
71
   static const char* name(LTIMetadataDataType dataType);
72
};
73

    
74

    
75

    
76
LT_END_NAMESPACE(LizardTech)
77

    
78
#if defined(LT_COMPILER_MS)
79
        #pragma warning(pop)
80
#endif
81

    
82
#endif // LTI_METADATAUTILS_H