Codemesh Runtime v3 C++ API Reference  3.9.205
xmog_xml_config_parser.h
1 //
2 // Copyright (c) 1999-2020 by Codemesh, Inc.. ALL RIGHTS RESERVED.
3 //
4 
5 
6 #ifndef xmog_xml_config_parser_inc
7 #define xmog_xml_config_parser_inc
8 
9 
10 #include "ACEXML/common/DefaultHandler.h"
11 
12 
13 class xmog_options;
14 class xmog_jvm_options;
15 #if (XMOG_IMPLEMENTS_REMOTE_CLIENT == 1)
17 #endif
18 #if (XMOG_IMPLEMENTS_REMOTE_SERVER == 1)
20 #endif
21 
22 
23 class xmog_xml_config_parser : public ACEXML_DefaultHandler
24 {
25 public:
26 
27  xmog_xml_config_parser( const char * fileName, xmog_options * pOpts );
28 
29  xmog_xml_config_parser( const char * fileName, xmog_jvm_options * pJvmOpts );
30 
31 #if (XMOG_IMPLEMENTS_REMOTE_CLIENT == 1)
32  xmog_xml_config_parser( const char * fileName, xmog_remote_client_options * pClientOpts );
33 #endif
34 
35 #if (XMOG_IMPLEMENTS_REMOTE_SERVER == 1)
36  xmog_xml_config_parser( const char * fileName, xmog_remote_server_options * pServerOpts );
37 #endif
38 
39  virtual ~xmog_xml_config_parser();
40 
41  /*
42  * Receive notification of the end of an element.
43  */
44  virtual void endElement( const ACEXML_Char *namespaceURI,
45  const ACEXML_Char *localName,
46  const ACEXML_Char *qName );
47 
48  /*
49  * Receive notification of the beginning of an element.
50  */
51  virtual void startElement( const ACEXML_Char *namespaceURI,
52  const ACEXML_Char *localName,
53  const ACEXML_Char *qName,
54  ACEXML_Attributes *atts );
55 
56  /*
57  * Receive notification of a non-recoverable error.
58  */
59  virtual void fatalError( ACEXML_SAXParseException &exception );
60 
61  const char * get_exception_id() const
62  {
63  return error_type_;
64  }
65 
66  const char * get_error_msg() const
67  {
68  return error_msg_;
69  }
70 
71 private:
72 
73  char * fileName_;
74  char * error_type_;
75  char * error_msg_;
76  ACEXML_Char * usedLoaderName_;
77  ACEXML_Char * usedLoaderSettings_;
78  ACEXML_Char * usedLoaderOptions_;
79  ACEXML_Char * usedLoaderXOptions_;
80  xmog_options * pOptions_;
81  xmog_jvm_options * pJvmOptions_;
82 # if (XMOG_IMPLEMENTS_REMOTE_CLIENT == 1)
83  xmog_remote_client_options * pClientOptions_;
84 #endif
85 # if (XMOG_IMPLEMENTS_REMOTE_SERVER == 1)
86  xmog_remote_server_options * pServerOptions_;
87 #endif
88  bool bInCodemesh_;
89  bool bInRuntime_;
90  bool bInSettings_;
91  bool bInOptions_;
92  bool bInXOptions_;
93 };
94 
95 
96 #endif /* xmog_xml_config_parser_inc */
xmog_remote_server_options
Definition: xmog_remote_server_options.h:16
xmog_xml_config_parser
Definition: xmog_xml_config_parser.h:23
xmog_jvm_options
A class abstracting the maintenance and initialization of JVM configuration options.
Definition: xmog_jvm_options.h:174
xmog_options
This class wraps around options that govern the overall behavior of the runtime library with respect ...
Definition: xmog_options.h:258
xmog_remote_client_options
A class that represents the settings that a remote client uses to connect to a shared JVM.
Definition: xmog_remote_client_options.h:60

Copyright (c) 1999-2020 by Codemesh, Inc., ALL RIGHTS RESERVED.