#include <Svc_Conf.h>
Collaboration diagram for ACE_Svc_Conf_Param:

Public Types | |
| enum | SVC_CONF_PARAM_TYPE { SVC_CONF_FILE, SVC_CONF_DIRECTIVE } |
Public Methods | |
| ACE_Svc_Conf_Param (FILE *file) | |
| Constructor. More... | |
| ACE_Svc_Conf_Param (const ACE_TCHAR *directive) | |
| Constructor. More... | |
| ~ACE_Svc_Conf_Param (void) | |
Public Attributes | |
| union { | |
| FILE * file | |
| const ACE_TCHAR * directive | |
| } | source |
| SVC_CONF_PARAM_TYPE | type |
| Discriminant use to determine which union member to use. More... | |
| int | yyerrno |
| Keeps track of the number of errors encountered so far. More... | |
| int | yylineno |
| Keeps track of the current line number for error-handling routine. More... | |
| ace_yy_buffer_state * | buffer |
| Lexer buffer that corresponds to the current Service Configurator file/direct scan. More... | |
| ACE_Obstack_T< ACE_TCHAR > | obstack |
| Obstack used for efficient memory allocation when parsing/scanning a service configurator directive. More... | |
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 62 of file Svc_Conf.h.
|
|
Definition at line 66 of file Svc_Conf.h.
00067 {
00068 /// The lexer will scan a file containing one or more directives.
00069 SVC_CONF_FILE,
00070
00071 /// The lexer will scan a string containing a directive.
00072 SVC_CONF_DIRECTIVE
00073 };
|
|
|
Constructor.
Definition at line 76 of file Svc_Conf.h. References buffer, file, obstack, source, SVC_CONF_FILE, type, yyerrno, and yylineno.
|
|
|
Constructor.
Definition at line 87 of file Svc_Conf.h. References ACE_TCHAR, buffer, directive, obstack, source, SVC_CONF_DIRECTIVE, type, yyerrno, and yylineno.
|
|
|
Definition at line 97 of file Svc_Conf.h. References ace_yy_delete_buffer.
00098 {
00099 ace_yy_delete_buffer (this->buffer);
00100 }
|
|
|
Lexer buffer that corresponds to the current Service Configurator file/direct scan.
Definition at line 125 of file Svc_Conf.h. Referenced by ACE_Svc_Conf_Param. |
|
|
String containing directive that will be scanned and parsed.
Definition at line 110 of file Svc_Conf.h. Referenced by ACE_Svc_Conf_Param. |
|
|
FILE stream from which directives will be scanned and parsed.
Definition at line 107 of file Svc_Conf.h. Referenced by ACE_Svc_Conf_Param. |
|
|
Obstack used for efficient memory allocation when parsing/scanning a service configurator directive.
Definition at line 129 of file Svc_Conf.h. Referenced by ACE_Svc_Conf_Param. |
|
|
Referenced by ACE_Svc_Conf_Param. |
|
|
Discriminant use to determine which union member to use.
Definition at line 115 of file Svc_Conf.h. Referenced by ACE_Svc_Conf_Param. |
|
|
Keeps track of the number of errors encountered so far.
Definition at line 118 of file Svc_Conf.h. Referenced by ACE_Svc_Conf_Param, and ACE_Service_Config::process_directives_i. |
|
|
Keeps track of the current line number for error-handling routine.
Definition at line 121 of file Svc_Conf.h. Referenced by ACE_Svc_Conf_Param. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002