translator-output.h - systemtap
Functions defined
Macros defined
Source code
#ifndef TRANSLATOR_OUTPUT_H
#define TRANSLATOR_OUTPUT_H
#include <iostream>
#include <fstream>
#include <string>
#include <cassert>
class translator_output
{
char *buf;
std::ofstream* o2;
std::ostream& o;
unsigned tablevel;
public:
std::string filename;
bool trailer_p;
translator_output (std::ostream& file);
translator_output (const std::string& filename, size_t bufsize = 8192);
~translator_output ();
std::ostream& newline (int indent = 0);
void indent (int indent = 0);
void assert_0_indent () { o << std::flush; assert (tablevel == 0); }
std::ostream& line();
std::ostream::pos_type tellp() { return o.tellp(); }
std::ostream& seekp(std::ostream::pos_type p) { return o.seekp(p); }
};
#endif