Option.h 1.43 KB
Newer Older
gsell's avatar
gsell committed
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
#ifndef OPAL_Option_HH
#define OPAL_Option_HH

// ------------------------------------------------------------------------
// $RCSfile: Option.h,v $
// ------------------------------------------------------------------------
// $Revision: 1.1.1.1 $
// ------------------------------------------------------------------------
// Copyright: see Copyright.readme
// ------------------------------------------------------------------------
//
// Class: Option
//
// ------------------------------------------------------------------------
//
// $Date: 2000/03/27 09:33:37 $
// $Author: Andreas Adelmann $
//
// ------------------------------------------------------------------------

#include "AbstractObjects/Action.h"

// Class Option
// ------------------------------------------------------------------------
/// The OPTION command.
//  The user interface allowing setting of OPAL options.
//  The actual option flags are contained in namespace Options.

class Option: public Action {

public:

    /// Exemplar constructor.
    Option();

    virtual ~Option();

    /// Make clone.
39
    virtual Option *clone(const std::string &name);
gsell's avatar
gsell committed
40 41 42 43 44

    /// Execute the command.
    virtual void execute();

private:
45
    void handlePsDumpFrame(const std::string &dumpFrame);
gsell's avatar
gsell committed
46 47 48 49 50 51

    // Not implemented.
    Option(const Option &);
    void operator=(const Option &);

    // Clone constructor.
52
    Option(const std::string &name, Option *parent);
gsell's avatar
gsell committed
53 54
};

55
#endif // OPAL_Option_HH