sedContext.h 835 B

12345678910111213141516171819202122232425262728293031
  1. // Filename: sedContext.h
  2. // Created by: drose (24Oct00)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. #ifndef SEDCONTEXT_H
  6. #define SEDCONTEXT_H
  7. #include "ppremake.h"
  8. ///////////////////////////////////////////////////////////////////
  9. // Class : SedContext
  10. // Description : This contains the current context of the sed process
  11. // as it is running: the pattern space, the hold space,
  12. // and the current line numbers, etc. It is updated as
  13. // each line is read in and as each command is executed.
  14. ////////////////////////////////////////////////////////////////////
  15. class SedContext {
  16. public:
  17. SedContext(ostream &out);
  18. int _line_number;
  19. bool _is_last_line;
  20. string _pattern_space;
  21. string _hold_space;
  22. bool _deleted;
  23. ostream &_out;
  24. };
  25. #endif