Main Page Class Hierarchy Compound List File List Compound Members

# InternalConstants.h

    00001 #ifndef INTERNAL_CONSTANTS
    00002 #define INTERNAL_CONSTANTS
    00003
    00012 /* constant strings */
    00013
    00014 // element names
    00015 const char ELE_TABLE[] = "TABLE";
    00016 const char ELE_DESC[] = "DESCRIPTION";
    00017 const char ELE_FIELD[] = "FIELD";
    00018 const char ELE_LINK[] = "LINK";
    00019 const char ELE_DATA[] = "DATA";
    00020 const char ELE_TABLEDATA[] = "TABLEDATA";
    00021 const char ELE_TR[] = "TR";
    00022 const char ELE_TD[] = "TD";
    00023 const char ELE_VALUES[] = "VALUES";
    00024 const char ELE_MIN[] = "MIN";
    00025 const char ELE_MAX[] = "MAX";
    00026 const char ELE_OPTION[] = "OPTION";
    00027 const char ELE_RESOURCE[] = "RESOURCE";
    00028 const char ELE_INFO[] = "INFO";
    00029 const char ELE_COOSYS[] = "COOSYS";
    00030 const char ELE_PARAM[] = "PARAM";
    00031
    00032
    00033 // table attribute names
    00034 const char ATTR_ID[] = "ID";
    00035 const char ATTR_NAME[] = "name";
    00036 const char ATTR_REF[] = "ref";
    00037
    00038 // field attribute names
    00039 const char ATTR_UNIT[] = "unit";
    00040 const char ATTR_DATATYPE[] = "datatype";
    00041 const char ATTR_PRECISION[] = "precision";
    00042 const char ATTR_WIDTH[] = "width";
    00043 const char ATTR_UCD[] = "ucd";
    00044 const char ATTR_ARRAYSIZE[] = "arraysize";
    00045 const char ATTR_TYPE[] = "type";
    00046
    00047 // values attribute names
    00048 const char ATTR_NULL[] = "null";
    00049 const char ATTR_INVALID[] = "invalid";
    00050
    00051 // min attribute names
    00052 const char ATTR_VALUE[] = "value";
    00053 const char ATTR_INCLUSIVE[] = "inclusive";
    00054
    00055 // link attribute names
    00056 const char ATTR_CONTENT_ROLE[] = "content-role";
    00057 const char ATTR_CONTENT_TYPE[] = "content-type";
    00058 const char ATTR_TITLE[] = "title";
    00059 const char ATTR_HREF[] = "href";
    00060 const char ATTR_GREF[] = "gref";
    00061 const char ATTR_ACTION[] = "action";
    00062
    00063 // coosys attribute name
    00064 const char ATTR_EQUINOX[] = "equinox";
    00065 const char ATTR_EPOCH[] = "epoch";
    00066 const char ATTR_SYSTEM[] = "system";
    00067
    00068
    00069 const char FIELD_DATATYPE[][16] = {"", "boolean", "bit", "unsignedByte",
    00070                         "short", "int", "long", "char", "unicodeChar", "float", "double",
    00071                         "floatComplex", "doubleComplex"};
    00072
    00073 const int NUM_OF_DATATYPES = 12;
    00074
    00075 const char FIELD_TYPE[][10] = {"", "hidden", "no_query", "trigger" };
    00076
    00077 const int NUM_OF_FIELD_TYPES = 4;
    00078
    00079 const char CONTENT_ROLE[][6] = {"", "query", "hints", "doc" };
    00080
    00081 const int NUM_OF_CONTENT_ROLES = 4;
    00082
    00083 const char COOSYS_SYSTEM[][15] = {"", "eq_FK4", "eq_FK5", "ICRS", "ecl_FK5",
    00084                 "galactic", "supergalactic", "xy", "barycentric", "geo_app"};
    00085
    00086 const int NUM_OF_COOSYS_SYSTEMS = 10;
    00087
    00088 const char RESOURCE_META_TYPE[] = "meta";
    00089 const char RESOURCE_RESULTS_TYPE[] = "results";
    00090
    00091 const char VALUES_LEGAL_TYPE[] = "legal";
    00092 const char VALUES_ACTUAL_TYPE[] = "actual";
    00093
    00094 const char YES[] = "yes";
    00095 const char NO[] = "no";
    00096
    00097 const char BOOL_TRUE_TYPE1 = 'T';
    00098 const char BOOL_TRUE_TYPE2 = 't';
    00099 const char BOOL_TRUE_TYPE3 = '1';
    00100
    00101 const char BOOL_FALSE_TYPE1 = 'F';
    00102 const char BOOL_FALSE_TYPE2 = 'f';
    00103 const char BOOL_FALSE_TYPE3 = '0';
    00104
    00105 #endif