//
// VT++.h  -  C++ Class Wrapper for VAMPIRtrace
//
//  Author: Bernd Mohr, Research Center Juelich, ZAM
// Version: 1.0  1997-Jul-11
//
//   Usage:
//
//     VT_symdef (123, "foo", "User");   // symbol definition as usual
//
//     void foo(void) {        // function to be traced
//       VT_Trace vt(123);     // declare VT_Trace object in first line
//       ...                   // => ctor/dtor automatically to tracing
//     }
//

#ifndef __VT_PLUSPLUS_
#define __VT_PLUSPLUS_

extern "C" {
#include "VT.h"
}

class VT_Trace {
public:
  VT_Trace(int code) { VT_begin(code_ = code); }
  ~VT_Trace()        { VT_end(code_); }
private:
  int code_;
};

#endif /* __VT_PLUSPLUS_ */

