Fork me on GitHub

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • external/ExRootAnalysis/ExRootConfReader.cc

    rd97a18b r341014c  
    1414#include "TSystem.h"
    1515
     16#include <fstream>
     17#include <iomanip>
    1618#include <iostream>
    17 #include <iomanip>
    18 #include <fstream>
     19#include <sstream>
     20#include <stdexcept>
    1921#include <string>
    20 #include <stdexcept>
    21 #include <sstream>
    2222
    2323using namespace std;
     
    186186int ModuleObjCmdProc(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
    187187{
    188   ExRootConfReader *reader = static_cast<ExRootConfReader*>(clientData);
     188  ExRootConfReader *reader = static_cast<ExRootConfReader *>(clientData);
    189189
    190190  if(objc < 3)
     
    203203    Tcl_ListObjAppendElement(interp, object, Tcl_NewStringObj("namespace", -1));
    204204    Tcl_ListObjAppendElement(interp, object, Tcl_NewStringObj("eval", -1));
    205     Tcl_ListObjAppendList(interp, object, Tcl_NewListObj(objc-2, objv+2));
     205    Tcl_ListObjAppendList(interp, object, Tcl_NewListObj(objc - 2, objv + 2));
    206206
    207207    return Tcl_GlobalEvalObj(interp, object);
     
    215215int SourceObjCmdProc(ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
    216216{
    217   ExRootConfReader *reader = static_cast<ExRootConfReader*>(clientData);
     217  ExRootConfReader *reader = static_cast<ExRootConfReader *>(clientData);
    218218  stringstream fileName;
    219219
     
    245245  if(fObject && TCL_OK != Tcl_GetIntFromObj(fTclInterp, fObject, &result))
    246246  {
    247     message << "parameter '"<< fName << "' is not an integer." << endl;
     247    message << "parameter '" << fName << "' is not an integer." << endl;
    248248    message << fName << " = " << Tcl_GetStringFromObj(fObject, 0);
    249249    throw runtime_error(message.str());
     
    260260  if(fObject && TCL_OK != Tcl_GetLongFromObj(fTclInterp, fObject, &result))
    261261  {
    262     message << "parameter '"<< fName << "' is not an long integer." << endl;
     262    message << "parameter '" << fName << "' is not an long integer." << endl;
    263263    message << fName << " = " << Tcl_GetStringFromObj(fObject, 0);
    264264    throw runtime_error(message.str());
     
    275275  if(fObject && TCL_OK != Tcl_GetDoubleFromObj(fTclInterp, fObject, &result))
    276276  {
    277     message << "parameter '"<< fName << "' is not a number." << endl;
     277    message << "parameter '" << fName << "' is not a number." << endl;
    278278    message << fName << " = " << Tcl_GetStringFromObj(fObject, 0);
    279279    throw runtime_error(message.str());
     
    290290  if(fObject && TCL_OK != Tcl_GetBooleanFromObj(fTclInterp, fObject, &result))
    291291  {
    292     message << "parameter '"<< fName << "' is not a boolean." << endl;
     292    message << "parameter '" << fName << "' is not a boolean." << endl;
    293293    message << fName << " = " << Tcl_GetStringFromObj(fObject, 0);
    294294    throw runtime_error(message.str());
     
    314314  if(fObject && TCL_OK != Tcl_ListObjLength(fTclInterp, fObject, &length))
    315315  {
    316     message << "parameter '"<< fName << "' is not a list." << endl;
     316    message << "parameter '" << fName << "' is not a list." << endl;
    317317    message << fName << " = " << Tcl_GetStringFromObj(fObject, 0);
    318318    throw runtime_error(message.str());
     
    329329  if(fObject && TCL_OK != Tcl_ListObjIndex(fTclInterp, fObject, index, &object))
    330330  {
    331     message << "parameter '"<< fName << "' is not a list." << endl;
     331    message << "parameter '" << fName << "' is not a list." << endl;
    332332    message << fName << " = " << Tcl_GetStringFromObj(fObject, 0);
    333333    throw runtime_error(message.str());
Note: See TracChangeset for help on using the changeset viewer.