Changeset 10310 for trunk/FACT++


Ignore:
Timestamp:
04/07/11 15:49:54 (14 years ago)
Author:
tbretz
Message:
Removed some little code which is in the base classes anyway.
Location:
trunk/FACT++/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/LocalControl.h

    r10183 r10310  
    5858        lout << endl << kBold << "List of commands:" << endl;
    5959        fStateMachine->PrintListOfEvents(lout);
    60         //lout << endl;
     60        lout << endl;
    6161
    6262        return true;
     
    7474
    7575    void SetReceiver(StateMachineImp &imp) { fStateMachine = &imp; }
    76 
    77     void Run(const char * = 0)
    78     {
    79         lout << endl;
    80         lout << kBlue << kBold << "You are on the " << fName << " terminal of the MCP -" << endl;
    81         lout << kBlue << kBold << "the Master Control Program." << endl;
    82         lout << endl;
    83         lout << kBlue << kBold << "Hello Flynn..." << endl;
    84         lout << endl;
    85 
    86         T::Run();
    87     }
    8876};
    8977
  • trunk/FACT++/src/RemoteControl.h

    r10301 r10310  
    103103// **************************************************************************
    104104#include "WindowLog.h"
     105#include "ReadlineColor.h"
    105106
    106107template <class T>
     
    151152        T::PrintGeneralHelp();
    152153        lout << " " << kUnderline << "Specific commands:" << endl;
    153         lout << kBold << "  s,servers   " << kReset << "List all servers which are connected." << endl;
    154         lout << kBold << "  svc,service " << kReset << "List all services in the network." << endl;
     154        lout << kBold << "  s,servers     " << kReset << "List all servers which are connected." << endl;
     155        lout << kBold << "  svc,services " << kReset << "List all services in the network." << endl;
    155156        lout << endl;
    156157        return true;
     
    167168    bool Process(const std::string &str)
    168169    {
     170        if (ReadlineColor::Process(lout, str))
     171            return true;
     172
    169173        if (T::Process(str))
    170174            return true;
     
    176180        }
    177181
    178         if (str=="service" || str=="svc")
     182        if (str=="services" || str=="svc")
    179183        {
    180184            fServiceList.PrintDescription(lout);
     
    183187
    184188        return ProcessCommand(str);
    185     }
    186     void Run(const char * = 0)
    187     {
    188         lout << endl;
    189         lout << kBlue << kBold << "You are on the terminal of the MCP -" << endl;
    190         lout << kBlue << kBold << "the Master Control Program." << endl;
    191         lout << endl;
    192         lout << kBlue << kBold << "Hello Flynn..." << endl;
    193         lout << endl;
    194 
    195         T::Run();
    196189    }
    197190};
Note: See TracChangeset for help on using the changeset viewer.