-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCRateCommand.h
More file actions
67 lines (56 loc) · 1.76 KB
/
Copy pathCRateCommand.h
File metadata and controls
67 lines (56 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*
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
*/
#ifndef __CRATECOMMAND_H
#define __CRATECOMMAND_H
#ifndef __TCLOBJECTPROCESSOR_H
#include <TCLObjectProcessor.h>
#endif
class CTCLInterpreter;
class CTCLObject;
/*!
This class provides a new SpecTcl command: 'rate' to SpecTcl.
rate generates and manipulates objects that keep track
of the rate at which spectra increment. All types of
spectra are currently supported. The
formats for the command are:
\verbatim
rate create spectrum - Creates a new rate computer.
rate delete spectrum - Destroys any rate computer for the spectrum.
rate list - List information about all the rate
computers.
\endverbatim
*/
class CRateCommand : public CTCLObjectProcessor
{
public:
CRateCommand(CTCLInterpreter& interp);
virtual ~CRateCommand();
private:
CRateCommand(const CRateCommand& rhs);
CRateCommand& operator=(const CRateCommand& rhs);
int operator==(const CRateCommand& rhs) const;
int operator!=(const CRateCommand& rhs) const;
public:
virtual int operator()(CTCLInterpreter& interp,
STD(vector)<CTCLObject>& objv);
protected:
int createRate(CTCLInterpreter& interp,
STD(vector)<CTCLObject>& objv);
int deleteRate(CTCLInterpreter& interp,
STD(vector)<CTCLObject>& objv);
int listRates(CTCLInterpreter& interp,
STD(vector)<CTCLObject>& objv);
private:
STD(string) Usage();
};
#endif