• Classes
  • Modules
  • Namespaces
  • Files
  • Related Pages
  • File List
  • File Members

parameterConstants.h

Go to the documentation of this file.
00001 #ifndef _PARAM_CONSTANTS_H
00002 #define _PARAM_CONSTANTS_H
00003 /*******************************************************************************
00004 *    ALMA - Atacama Large Millimiter Array
00005 *    (c) Associated Universities Inc., 2002 
00006 *    (c) European Southern Observatory, 2002
00007 *    Copyright by ESO (in the framework of the ALMA collaboration)
00008 *    and Cosylab 2002, All rights reserved
00009 *
00010 *    This library is free software; you can redistribute it and/or
00011 *    modify it under the terms of the GNU Lesser General Public
00012 *    License as published by the Free Software Foundation; either
00013 *    version 2.1 of the License, or (at your option) any later version.
00014 *
00015 *    This library is distributed in the hope that it will be useful,
00016 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
00017 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018 *    Lesser General Public License for more details.
00019 *
00020 *    You should have received a copy of the GNU Lesser General Public
00021 *    License along with this library; if not, write to the Free Software
00022 *    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
00023 */
00024 namespace Parameters {
00025         // SOME USEFUL CONSTANTS
00026 
00027         // ParameterSet constants
00028         const char* const PARAMETERSET_NAMESPACE_PREFIX = "pset";
00029         const char* const PARAMETERSET_SCHEMA_NAME = "pset.xsd";
00030         const char* const PSETDEF_STRING = "psetdef";
00031         const char* const PARAMETER_STRING = "param";
00032         const char* const PARAMETERSET_STRING = "paramset";
00033         const char* const TYPE_STRING = "type"; 
00034         const char* const NAME_STRING = "name"; 
00035         const char* const VALUE_STRING = "value"; 
00036         const char* const UNITS_STRING = "units"; 
00037         const char* const INT_PARAM_STRING = "int"; 
00038         const char* const DOUBLE_PARAM_STRING = "double"; 
00039         const char* const STRING_PARAM_STRING = "string"; 
00040         const char* const BOOL_PARAM_STRING = "bool"; 
00041         const char* const INT_ARRAY_PARAM_STRING = "intArray"; 
00042         const char* const DOUBLE_ARRAY_PARAM_STRING = "doubleArray"; 
00043         const char* const STRING_ARRAY_PARAM_STRING = "stringArray"; 
00044         const char* const PSET_SCHEMA_FILE_NAME = "pset.xsd";
00045         const char* const PSET_NAMESPACE_URI = "urn:schemas-cosylab-com:pset:1.0";
00046         const char* const XML_NAMESPACE_STRING = "xmlns";
00047         const char* const XML_SCHEMA_INSTANCE_PREFIX = "xsi";
00048         const char* const XML_SCHEMA_URI = "http://www.w3.org/2001/XMLSchema-instance";
00049         const char* const XML_SCHEMA_LOCATION_HINT_STRING = "schemaLocation";
00050         const char* const XML_STANDARD_HEADER = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>";
00051         const char* const QUOTE = "\"";
00052         const char* const SPACE = " ";
00053         const char* const EQUALS = "=";
00054         const char* const COLON = ":";
00055         const char* const NEWLINE = "\n";
00056         const char* const TAB = "\t";
00057         const char* const LESS_THAN_SIGN = "<";
00058         const char* const GREATER_THAN_SIGN = ">";
00059 
00060         // ParamSetDef constants
00061         const char* const PSETDEF_SCHEMA_FILE_NAME = "psetdef.xsd";
00062         const char* const PSETDEF_NAMESPACE_URI = "urn:schemas-cosylab-com:psetdef:1.0";
00063         const char* const INSTANCE_DOC_SUBDIR_NAME = "xml";
00064         const char* const PARAMETER_TAG_NAME_STR = "param";
00065         const char* const NAME_TAG_NAME_STR = "name";
00066         const char* const REQUIRED_TAG_NAME_STR = "required";
00067         const char* const PROMPT_TAG_NAME_STR = "prompt";
00068         const char* const HELP_TAG_NAME_STR = "help";
00069         const char* const DEFAULT_TAG_NAME_STR = "default";
00070         const char* const STRING_DEFAULT_TAG_NAME_STR = "stringdefault";
00071         const char* const LENGTH_TAG_NAME_STR = "length";
00072         const char* const VALID_VALUES_TAG_NAME_STR = "validValues";
00073         const char* const VALUE_TAG_NAME_STR = "value";
00074         const char* const MAX_TAG_NAME_STR = "max";
00075         const char* const MIN_TAG_NAME_STR = "min";
00076         const char* const UNITS_TAG_NAME_STR = "units";
00077         const char* const MAXLEN_TAG_NAME_STR = "maxlen";
00078         const char* const INT_PARAM_TYPE_STR = "int";
00079         const char* const DOUBLE_PARAM_TYPE_STR = "double";
00080         const char* const STRING_PARAM_TYPE_STR = "string";
00081         const char* const BOOL_PARAM_TYPE_STR = "bool";
00082         const char* const INT_ARRAY_PARAM_TYPE_STR = "intArray";
00083         const char* const DOUBLE_ARRAY_PARAM_TYPE_STR = "doubleArray";
00084         const char* const STRING_ARRAY_PARAM_TYPE_STR = "stringArray";
00085         const char* const TRUE_STRING = "true";
00086         const char* const FALSE_STRING = "false";
00087         const char* const ONE_STRING = "1";
00088 
00089         // Miscellaneous/shared constants
00090         const char* const TASK_DIR_ENV_VAR_NAME = "TASK_DIR"; 
00091         const char* const ACSROOT_ENV_VAR_NAME = "ACSROOT"; 
00092         const char* const INTROOT_ENV_VAR_NAME = "INTROOT"; 
00093         const char* const SPACE_STRING = " ";
00094         const char* const SCHEMA_SUBDIR_NAME = "xsd";
00095         const char* const CONFIG_SUBDIR_NAME = "idl";
00096         const char* const SLASH_STRING = "/"; // TODO - portability issue for forward slash?
00097 }
00098 #endif 

Generated on Thu Jan 12 2012 23:13:51 for ACS-10.0 C++ API by  doxygen 1.7.0