// This may look like C code, but it is really -*- C++ -*-
// 
// <copyright> 
//  
//  Copyright (c) 1993 
//  Institute for Information Processing and Computer Supported New Media (IICM), 
//  Graz University of Technology, Austria. 
//  
// </copyright> 
// 
// 
// <file> 
// 
// Name:        data.C
// 
// Purpose:     piece of data that is passed from the input to the various 
//              outputs of a spooler
// 
// Created:     27 Sep 93   Joerg Faschingbauer
// 
// Modified:    
// 
// Description: 
// 
// 
// </file> 
#include "data.h"

#include "assert.h"
#include "new.h"
#include "verbose.h"

// --------------------------------------------------------------------
int Data :: instances_ = 0 ;

Data :: Data (char* raw, int size)
: raw_(raw),
  size_(size) {
     hgassert (size>0, "Data::Data(): null size") ;
     instances_++ ;
}

Data :: ~Data() {
   DEBUGNL ("Data::~Data()") ;
   HGDELETE (raw_) ;
   instances_-- ;
}






