#include <Svc_Conf_Param.h>
Collaboration diagram for ACE_Svc_Conf_Param:
Public Types | |
SVC_CONF_FILE | |
The lexer will scan a file containing one or more directives. | |
SVC_CONF_DIRECTIVE | |
The lexer will scan a string containing a directive. | |
enum | SVC_CONF_PARAM_TYPE { SVC_CONF_FILE, SVC_CONF_DIRECTIVE } |
Public Member Functions | |
ACE_Svc_Conf_Param (ACE_Service_Gestalt *config, FILE *file) | |
Constructor. | |
ACE_Svc_Conf_Param (ACE_Service_Gestalt *config, const ACE_TCHAR *directive) | |
Constructor. | |
~ACE_Svc_Conf_Param (void) | |
Public Attributes | |
union { | |
FILE * file | |
FILE stream from which directives will be scanned and parsed. | |
const ACE_TCHAR * directive | |
String containing directive that will be scanned and parsed. | |
} | source |
SVC_CONF_PARAM_TYPE | type |
Discriminant use to determine which union member to use. | |
int | yyerrno |
Keeps track of the number of errors encountered so far. | |
int | yylineno |
Keeps track of the current line number for error-handling routine. | |
ace_yy_buffer_state * | buffer |
ACE_Obstack_T< ACE_TCHAR > | obstack |
ACE_Service_Gestalt * | config |
A reference to the configuration. |
This is intended for internal use within ACE service configuration framework only.
This class retains the state for a given parse/scan. It primarily makes it possible to hold the static object lock in the scanner for as short a period of time as possible. The resulting finer grained locking prevents deadlocks from occuring when scanning a `svc.conf' file and activating an ACE_Task, for example, as a result of processing the directives in that file.
Definition at line 54 of file Svc_Conf_Param.h.
SVC_CONF_FILE | The lexer will scan a file containing one or more directives. |
SVC_CONF_DIRECTIVE | The lexer will scan a string containing a directive. |
Definition at line 58 of file Svc_Conf_Param.h.
00059 { 00060 /// The lexer will scan a file containing one or more directives. 00061 SVC_CONF_FILE, 00062 00063 /// The lexer will scan a string containing a directive. 00064 SVC_CONF_DIRECTIVE 00065 };
ACE_Svc_Conf_Param::ACE_Svc_Conf_Param | ( | ACE_Service_Gestalt * | config, | |
FILE * | file | |||
) | [inline] |
ACE_Svc_Conf_Param::ACE_Svc_Conf_Param | ( | ACE_Service_Gestalt * | config, | |
const ACE_TCHAR * | directive | |||
) | [inline] |
ACE_Svc_Conf_Param::~ACE_Svc_Conf_Param | ( | void | ) | [inline] |
Definition at line 91 of file Svc_Conf_Param.h.
References ace_yy_delete_buffer().
00092 { 00093 ace_yy_delete_buffer (this->buffer); 00094 }
Lexer buffer that corresponds to the current Service Configurator file/direct scan.
Definition at line 119 of file Svc_Conf_Param.h.
Referenced by ACE_Svc_Conf_Lexer::input(), ACE_Svc_Conf_Lexer::scan(), and ACE_Svc_Conf_Lexer::yylex().
A reference to the configuration.
Definition at line 126 of file Svc_Conf_Param.h.
Referenced by ACE_Service_Gestalt::process_directives_i().
String containing directive that will be scanned and parsed.
Definition at line 104 of file Svc_Conf_Param.h.
Referenced by ACE_Svc_Conf_Lexer::input(), and ACE_Service_Gestalt::process_directives_i().
FILE* ACE_Svc_Conf_Param::file |
FILE stream from which directives will be scanned and parsed.
Definition at line 101 of file Svc_Conf_Param.h.
Referenced by ACE_Svc_Conf_Lexer::input().
Obstack used for efficient memory allocation when parsing/scanning a service configurator directive.
Definition at line 123 of file Svc_Conf_Param.h.
Referenced by ACE_Svc_Conf_Lexer::scan().
union { ... } ACE_Svc_Conf_Param::source |
Referenced by ACE_Svc_Conf_Param(), ACE_Svc_Conf_Lexer::input(), and ACE_Service_Gestalt::process_directives_i().
Discriminant use to determine which union member to use.
Definition at line 109 of file Svc_Conf_Param.h.
Referenced by ACE_Svc_Conf_Lexer::input(), and ACE_Service_Gestalt::process_directives_i().
Keeps track of the number of errors encountered so far.
Definition at line 112 of file Svc_Conf_Param.h.
Referenced by ACE_Svc_Conf_Lexer::input(), ACE_Service_Gestalt::process_directives_i(), and ACE_Svc_Conf_Lexer::scan().
Keeps track of the current line number for error-handling routine.
Definition at line 115 of file Svc_Conf_Param.h.
Referenced by ACE_Svc_Conf_Lexer::input(), and ACE_Svc_Conf_Lexer::scan().