| foobar.h |
// -*- C++ -*-
// Copyright (c) 1996-1997 ABC, Inc.
// $Id$
//
// File: foobar.h
// Package: foo
// Description: FOO project BAR manager header
//
#ifndef _foobar_h_
#define _foobar_h_
extern "C" {
#include <stdio.h>
}
#ifndef _foo_h_
# include "foo.h"
#endif
extern "C++" {
class FooBar {
public:
FooBar(FILE *f);
private:
FILE *_stream;
unsigned char *_buf;
};
} // extern "C++"
#endif /* !_foobar_h_ */
| foobar.cxx |
#ifndef NORCSID
static const char rcsid[] = "Copyright (c) 1996-1997 ABC, Inc. $Id$";
#endif
//
// File: foobar.cxx
// Package: foo
// Description: FOO project BAR manager
//
extern "C" {
#include <memory.h>
}
#ifndef _foobar_h_
# include "foobar.h"
#endif
FooBar::FooBar(FILE *f)
{
_stream = f;
_buf = new unsigned char [1024];
memset(_buf, 0, 1024);
}
|
|