1    	/*!
2    	 * \file Stypes.h
3    	 *
4    	 * \author Valeri Fine  08/12/94
5    	 *
6    	 * Stypes
7    	 * Basic types used by STAF - ROOT interface.                           
8    	 *
9    	 * This header file contains the set of the macro definitions           
10   	 * to generate a ROOT dictionary for "pure" C-strucutre the way ROOT    
11   	 * does it for the "normal" C++ classes                                 
12   	 *                                                                      
13   	 * This header file should be included into the all STAF table wrapper  
14   	 * classes (by stic compiler)  
15   	 * 
16   	 * Note: while kStErr used to skip an event, this behavior
17   	 * was changed in 2002 to only leave the current maker / sub-chain but
18   	 * not the entire chain.
19   	 *                                                                      
20   	 */
21   	#ifndef ST_NO_NAMESPACES
22   	#ifdef __DECCXX
23   	namespace std {};
24   	#endif
25   	using namespace std;
26   	#endif
27   	
28   	#ifndef STAR_Stypes
29   	#define STAR_Stypes
30   	 
31   	#include <Ttypes.h>
32   	#include "StTypeDefs.h"
33   	#ifdef __HP_aCC
34   	#include "St_HP_aCC.h"
35   	#endif
36   	/*!
37   	 * \enum EReturnCodes 
38   	 */
39   	enum EReturnCodes {                                                    
40   	  kStOK    = 0,                           /**< OK                                                 */
41   	  kStOk    = 0,                           /**< OK                                                 */
42   	  kStWarn  = 1,                           /**< Warning, something wrong but work can be continued */
43   	  kStEOF   = 2,                           /**< End Of File                                        */
44   	  kStErr   = 3,                           /**< Error, drop this i.e. leave the sub-chain          */
45   	  kStERR   = 3,                           /**< Error, drop this i.e. leave the sub-chain          */
46   	  kStFatal = 4,                           /**< Fatal error, processing impossible                 */
47   	  kStFATAL = 4,                           /**< Fatal error, processing impossible                 */
48   	  kStSKIP  = kStErr   + 10,               /**< Skip this event if chain allows                    */
49   	  kStSkip  = kStSKIP,                     /**< Skip this event if chain allows                    */
50   	  kStSTOP  = kStEOF   + 10,               /**< enum value kStSTOP                                 */
51   	  kStStop  = kStSTOP                      /**< enum value kStStop                                 */
52   	};  
53   	
54   	#endif 
55