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

loggingXMLParser.h

Go to the documentation of this file.
00001 #ifndef loggingXMLParser_H
00002 #define loggingXMLParser_H
00003 
00004 /*******************************************************************************
00005 *    ALMA - Atacama Large Millimiter Array
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 * "@(#) $Id: loggingXMLParser.h,v 1.35 2006/09/01 02:20:55 cparedes Exp $"
00025 *
00026 * who       when        what
00027 * --------  ----------  ----------------------------------------------
00028 * bjeram    2002-01-17  NONE -> XP_NONE (warnings on LCU)
00029 * msekoran  2001-07-08  created
00030 */
00031 
00032 #ifndef __cplusplus
00033 #error This is a C++ include file and cannot be used from plain C
00034 #endif
00035 
00036 #include <acsutil.h>
00037 #include <loggingExport.h>
00038 
00039 #include <loggingXMLElement.h>
00040 
00041 namespace loggingXMLParser {
00042 
00043 #define XP_NONE 0
00044 
00045 #define ELEMENT_BEGIN_CHAR 1
00046 #define ELEMENT_DATA 2
00047 #define ELEMENT_NAME 3
00048 
00049 #define ELEMENT_END_CHAR 4
00050 #define ELEMENT_END 5
00051 
00052 
00053 #define ATTRIBUTE_AREA 6
00054 #define ATTRIBUTE_NAME 7
00055 #define ATTRIBUTE_VALUE_BEGIN 8
00056 #define ATTRIBUTE_VALUE 9
00057 #define ATTRIBUTE_VALUE_END 10
00058 
00059 #define CDATA 11
00060 #define CDATA_END 12
00061 
00062 #define SPECIAL_SECTION 13
00063 
00073 class logging_EXPORT XMLParser
00074 {
00075 
00076 public:
00077 
00084   static XMLElement * parseString(const ACE_TCHAR * xml, bool skipValueParsing=false);
00085 
00092   static int parseElementType(const ACE_TCHAR * xml, ACE_CString &elementType);
00093 };
00094 
00095  }; 
00096 
00097 #endif 
00099 // ************************************************************************
00100 //
00101 // REVISION HISTORY:
00102 //
00103 // $Log: loggingXMLParser.h,v $
00104 // Revision 1.35  2006/09/01 02:20:55  cparedes
00105 // small change, NAMESPACE_BEGIN / NAMESPACE_END / NAMESPACE_USE macross to clean up a little the cpp code
00106 //
00107 // Revision 1.34  2003/03/14 10:24:37  rgeorgie
00108 // LGPL
00109 //
00110 // Revision 1.33  2002/09/23 12:43:05  vltsccm
00111 // msekoran: loggingXMLParser fixed, memory leak removed and tat test added.
00112 //
00113 // Revision 1.32  2002/04/10 14:41:38  vltsccm
00114 // logging1.32
00115 //
00116 // Revision 1.31  2002/03/27 16:44:23  vltsccm
00117 // logging1.31
00118 //
00119 // Revision 1.30  2002/02/13 12:55:31  vltsccm
00120 // logging1.30
00121 //
00122 // Revision 1.29  2002/02/08 13:40:53  vltsccm
00123 // logging1.29
00124 //
00125 // Revision 1.28  2002/02/05 17:51:54  vltsccm
00126 // logging1.28
00127 //
00128 // Revision 1.27  2002/02/04 08:26:28  vltsccm
00129 // logging1.27
00130 //
00131 // Revision 1.26  2002/01/18 09:42:58  vltsccm
00132 // logging1.26
00133 //
00134 // Revision 1.25  2002/01/16 10:41:28  vltsccm
00135 // logging1.25
00136 //
00137 // Revision 1.24  2002/01/15 12:42:19  vltsccm
00138 // logging1.24
00139 //
00140 // Revision 1.23  2002/01/14 21:10:48  vltsccm
00141 // logging1.23
00142 //
00143 // Revision 1.22  2001/12/27 19:04:08  vltsccm
00144 // logging1.22
00145 //
00146 // Revision 1.21  2001/12/24 13:30:58  vltsccm
00147 // logging1.21
00148 //
00149 // Revision 1.20  2001/11/14 08:44:17  vltsccm
00150 // logging1.20
00151 //
00152 // Revision 1.19  2001/09/13 14:24:33  vltsccm
00153 // logging1.19
00154 //
00155 // Revision 1.18  2001/08/13 07:04:56  vltsccm
00156 // logging1.18
00157 //
00158 // Revision 1.17  2001/07/12 20:23:03  vltsccm
00159 // logging1.17
00160 //
00161 // Revision 1.16  2001/07/12 13:25:59  vltsccm
00162 // logging1.16
00163 //
00164 // Revision 1.15  2001/07/12 12:38:18  vltsccm
00165 // logging1.15
00166 //
00167 // Revision 1.14  2001/07/12 08:56:17  vltsccm
00168 // logging1.14
00169 //
00170 // Revision 1.13  2001/07/12 07:08:24  vltsccm
00171 // logging1.13
00172 //
00173 // Revision 1.12  2001/07/11 09:13:45  vltsccm
00174 // logging1.12
00175 //
00176 // Revision 1.11  2001/07/11 09:13:44  vltsccm
00177 // logging1.11
00178 //
00179 // Revision 1.10  2001/07/11 09:13:44  vltsccm
00180 // logging1.10
00181 //
00182 // Revision 1.9  2001/07/11 09:13:44  vltsccm
00183 // logging1.9
00184 //
00185 // Revision 1.8  2001/07/11 09:13:43  vltsccm
00186 // logging1.8
00187 //
00188 // Revision 1.7  2001/07/11 09:13:43  vltsccm
00189 // logging1.7
00190 //
00191 // Revision 1.6  2001/07/11 09:13:42  vltsccm
00192 // logging1.6
00193 //
00194 // Revision 1.5  2001/07/11 09:13:42  vltsccm
00195 // logging1.5
00196 //
00197 // Revision 1.4  2001/07/11 09:13:42  vltsccm
00198 // logging1.4
00199 //
00200 // Revision 1.3  2001/07/11 09:13:41  vltsccm
00201 // logging1.3
00202 //
00203 // Revision 1.2  2001/07/11 09:13:41  vltsccm
00204 // logging1.2
00205 //
00206 // Revision 1.1  2001/07/11 09:13:40  vltsccm
00207 // logging1.1
00208 //
00209 // Revision 1.0  2001/07/11 09:13:40  vltsccm
00210 // logging1.0
00211 //
00212 //
00213 // ************************************************************************

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