include/EDoc/StdErrFunctionProgress.h

Go to the documentation of this file.
00001 /*******************************************************************************
00002 
00003    Copyright (C) 2007 by Brendon Costa
00004 
00005    This library is free software; you can redistribute it and/or modify 
00006    it under the terms of the "LGPL Like" License defined in the file COPYING 
00007    that should have been distributed along with this source.
00008 
00009    This library is distributed in the hope that it will be useful, 
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of 
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
00012 
00013    You should have received a copy of the "LGPL Like" License 
00014    along with this library; see the file COPYING. if not, it can be 
00015    obtained from the EDoc++ website: 
00016    http://edoc.sourceforge.net/license.html
00017 
00018 *******************************************************************************/
00019 #ifndef EDOC_STDERRFUNCTIONPROGRESS_H
00020 #define EDOC_STDERRFUNCTIONPROGRESS_H
00021 
00022 #include "EDoc/ProgressIFace.h"
00023 
00024 namespace EDoc
00025 {
00026    //===========================================================================
00027    /** \brief Displays a progress indication for functions being processed to
00028     * stderr.
00029     *
00030     * This will display the progress to stderr in a format like:
00031     *
00032     * xxx/yyy : FunctionName
00033     *
00034     */
00035    class StdErrFunctionProgress : public FunctionProgressIFace
00036    {
00037    public:
00038 
00039       //------------------------------------------------------------------------
00040       /** \brief See ProgressIFace::Start()
00041        */
00042       virtual void Start(size_t total);
00043 
00044       //------------------------------------------------------------------------
00045       /** \brief See ProgressIFace::Progress()
00046        */
00047       virtual void Progress(Function* data);
00048 
00049       //------------------------------------------------------------------------
00050 
00051    public:
00052    
00053       size_t current;
00054       size_t total;
00055    };
00056    //===========================================================================
00057 }
00058 
00059 #endif // EDOC_STDERRFUNCTIONPROGRESS_H

Generated on Tue Jan 20 18:26:07 2009 for EDoc-0.2.1 by  doxygen 1.5.1