// // ******************************************************************** // * DISCLAIMER * // * * // * The following disclaimer summarizes all the specific disclaimers * // * of contributors to this software. The specific disclaimers,which * // * govern, are listed with their locations in: * // * http://cern.ch/geant4/license * // * * // * Neither the authors of this software system, nor their employing * // * institutes,nor the agencies providing financial support for this * // * work make any representation or warranty, express or implied, * // * regarding this software system or assume any liability for its * // * use. * // * * // * This code implementation is the intellectual property of the * // * GEANT4 collaboration. * // * By copying, distributing or modifying the Program (or any work * // * based on the Program) you indicate your acceptance of this * // * statement, and all its terms. * // ******************************************************************** // // // $Id: G4UIArrayString.hh,v 1.2 2001/07/11 10:01:19 gunter Exp $ // GEANT4 tag $Name: geant4-04-01 $ // #ifndef G4UIArrayString_h #define G4UIArrayString_h #include "globals.hh" // // Description: // This class is a utility class for listing commands like // UNIX "ls" command. // class G4UIArrayString { private: G4String* stringArray; G4int nElement; G4int nColumn; G4String* GetElement(G4int icol, G4int irow) const; // #rows in a column G4int GetNRow(G4int icol) const; // max field width of a column G4int GetNField(G4int icol) const; // calculate total column width G4int CalculateColumnWidth() const; public: G4UIArrayString(const G4String& stream); ~G4UIArrayString(); void Show(G4int ncol); }; #endif