#ifndef __OPERATION_CIFTI_ESTIMATE_FWHM_H__
#define __OPERATION_CIFTI_ESTIMATE_FWHM_H__

/*LICENSE_START*/
/*
 *  Copyright (C) 2014  Washington University School of Medicine
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License along
 *  with this program; if not, write to the Free Software Foundation, Inc.,
 *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
/*LICENSE_END*/

/*
file->save as... and enter what you will name the class, plus .h

find and replace these strings, without matching "whole word only" (plain text mode):

OperationCiftiEstimateFWHM     : operation name, in CamelCase, with initial capital, same as what you saved the header file to
OPERATION_CIFTI_ESTIMATE_FWHM    : uppercase of operation name, with underscore between words, used in #ifdef guards
-cifti-estimate-fwhm   : switch for the command line to use, often hyphenated version of operation name, lowercase, minus "operation"
ESTIMATE FWHM SMOOTHNESS OF A CIFTI FILE : short description of the command, uppercase, three to five words, often just command switch with more verbosity

next, make OperationCiftiEstimateFWHM.cxx from OperationTemplate.cxx.txt via one of the following (depending on working directory):

cat OperationTemplate.cxx.txt | sed 's/[O]perationName/OperationCiftiEstimateFWHM/g' | sed 's/-[c]ommand-switch/-cifti-estimate-fwhm/g' | sed 's/[S]HORT DESCRIPTION/ESTIMATE FWHM SMOOTHNESS OF A CIFTI FILE/g' > OperationCiftiEstimateFWHM.cxx
cat Operations/OperationTemplate.cxx.txt | sed 's/[O]perationName/OperationCiftiEstimateFWHM/g' | sed 's/-[c]ommand-switch/-cifti-estimate-fwhm/g' | sed 's/[S]HORT DESCRIPTION/ESTIMATE FWHM SMOOTHNESS OF A CIFTI FILE/g' > Operations/OperationCiftiEstimateFWHM.cxx
cat src/Operations/OperationTemplate.cxx.txt | sed 's/[O]perationName/OperationCiftiEstimateFWHM/g' | sed 's/-[c]ommand-switch/-cifti-estimate-fwhm/g' | sed 's|[S]HORT DESCRIPTION|ESTIMATE FWHM SMOOTHNESS OF A CIFTI FILE|g' > src/Operations/OperationCiftiEstimateFWHM.cxx

or manually copy and replace

next, implement its functions

add these to Operations/CMakeLists.txt:

OperationCiftiEstimateFWHM.h
OperationCiftiEstimateFWHM.cxx

place the following lines into Commands/CommandOperationManager.cxx:

#include "OperationCiftiEstimateFWHM.h"
    //near the top

    this->commandOperations.push_back(new CommandParser(new AutoOperationCiftiEstimateFWHM()));
        //in CommandOperationManager()

finally, remove this block comment
*/

#include "AbstractOperation.h"

namespace caret {
    
    class OperationCiftiEstimateFWHM : public AbstractOperation
    {
    public:
        static OperationParameters* getParameters();
        static void useParameters(OperationParameters* myParams, ProgressObject* myProgObj);
        static AString getCommandSwitch();
        static AString getShortDescription();
    };

    typedef TemplateAutoOperation<OperationCiftiEstimateFWHM> AutoOperationCiftiEstimateFWHM;

}

#endif //__OPERATION_CIFTI_ESTIMATE_FWHM_H__
