#include <Svc_Conf_Lexer_Guard.h>
Public Methods | |
| ACE_Svc_Conf_Lexer_Guard (FILE *file) | |
| Constructor. More... | |
| ACE_Svc_Conf_Lexer_Guard (const ACE_TCHAR *directive) | |
| Constructor. More... | |
| ~ACE_Svc_Conf_Lexer_Guard (void) | |
| Destructor. More... | |
Buffers are allocated and deallocated when scanning a file or a string. This class utilizes the "guard" idiom to perform stack pushing and popping before and after parsing/scanning.
The underlying stack allows nested scans to occur. For example, while scanning a `svc.conf' file, a Service Object's init() method could invoke a Service Configurator directive, which would require "moving" the current lexer state out of the way (pushing it onto the stack implementation).
|
|
Constructor. Create a new buffer to be used when scanning a new Service Configurator file, push it onto the underlying buffer stack, and make it the current buffer. |
|
|
Constructor. Create a new buffer to be used when scanning a new Service Configurator directive, push it onto the underlying buffer stack, and make it the current buffer. |
|
|
Destructor. Pop the current buffer off of the underlying buffer stack, and make the previous buffer (i.e. the one on the top of the stack), the current buffer. |
1.2.3 written by Dimitri van Heesch,
© 1997-2000