Chapter 5. Complete program listings.
// One time Module setup
virtual void Clear(); // co:mysegclear
// Resets data buffer
virtual unsigned int MaxSize(); // co:mysegobsoletemaxsize
virtual DAQWordBufferPtr& Read(DAQWordBufferPtr& rBuf); // co:mysegread
// Reads data buffer
};
#endif
Example 5-2. MyEventSegment.cpp
/*
This software is Copyright by the Board of Trustees of Michigan
State University (c) Copyright 2005.
You may use this software under the terms of the GNU public license
(GPL). The terms of this license are described at:
http://www.gnu.org/licenses/gpl.txt
Author:
Ron Fox
NSCL
Michigan State University
East Lansing, MI 48824-1321
*/
/*
This is the implementation file for the MyEventSegment
class. This class defines funtions that can be used to
readout any module covered in the CAENcard class. These
include the V785, V775, and V792
Tim Hoagland
11/3/04
*/
#include <config.h>
#ifdef HAVE_STD_NAMESPACE // co:boilerplate
45
Kommentare zu diesen Handbüchern