TAO_Lex_String_Input Class Reference

#include <PSDL_Interpreter.h>

List of all members.

Static Public Member Functions

void reset (char *input_string)
int copy_into (char *buf, int max_size)

Static Private Attributes

char * string_ = 0
char * current_ = 0
char * end_ = 0


Member Function Documentation

int TAO_Lex_String_Input::copy_into char *  buf,
int  max_size
[static]
 

Definition at line 83 of file PSDL_Interpreter.cpp.

References current_, end_, and ACE_OS::memcpy().

00085 {
00086   int chars_left =  TAO_Lex_String_Input::end_ - TAO_Lex_String_Input::current_;
00087   int n = max_size > chars_left ? chars_left : max_size;
00088 
00089   if (n > 0)
00090     {
00091       ACE_OS:: memcpy (buf,
00092                        TAO_Lex_String_Input::current_,
00093                        n);
00094       TAO_Lex_String_Input::current_ += n;
00095     }
00096 
00097   return n;
00098 }

void TAO_Lex_String_Input::reset char *  input_string  )  [static]
 

Definition at line 101 of file PSDL_Interpreter.cpp.

References current_, end_, string_, and ACE_OS::strlen().

Referenced by TAO_PSDL_Interpreter::build_tree().

00102 {
00103   TAO_Lex_String_Input::string_ = input_string;
00104   TAO_Lex_String_Input::current_ = input_string;
00105   TAO_Lex_String_Input::end_ =
00106     input_string + ACE_OS::strlen (TAO_Lex_String_Input::string_);
00107 }


Member Data Documentation

char * TAO_Lex_String_Input::current_ = 0 [static, private]
 

Definition at line 77 of file PSDL_Interpreter.cpp.

Referenced by copy_into(), and reset().

char * TAO_Lex_String_Input::end_ = 0 [static, private]
 

Definition at line 78 of file PSDL_Interpreter.cpp.

Referenced by copy_into(), and reset().

char * TAO_Lex_String_Input::string_ = 0 [static, private]
 

Definition at line 76 of file PSDL_Interpreter.cpp.

Referenced by reset().


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 14:08:01 2006 for TAO_PSS by doxygen 1.3.6