//************************************************************************************************** // PrcGSchem.cpp * // --------------- * // Started : 2008-02-18 * // Last Update : 2016-10-29 * // Copyright : (C) 2004-2016 MSWaters * //************************************************************************************************** //************************************************************************************************** // * // 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 3 of the License, or (at your option) any later version. * // * //************************************************************************************************** #include "PrcGSchem.hpp" //************************************************************************************************** // Constructor. PrcGSchem::PrcGSchem( void ) : PrcBase( wxPROCESS_REDIRECT ) { // Initialize the object attributes m_oaNameSchems.Clear( ); m_oNameLog .Clear( ); // Attempt to set and find the appropriate binary bSetBinFile( BIN_GSCHEM ); } //************************************************************************************************** // Destructor. PrcGSchem::~PrcGSchem( ) { } //************************************************************************************************** // Set the schematic file name/s. // // Argument List: // rosFileNames - A string containing the full path and file name/s // // Return Values: // true - Success // false - Failure bool PrcGSchem::bSetSchemFiles( const wxString & rosFileNames ) { wxStringTokenizer ostk1; wxArrayString oas1; ostk1.SetString( rosFileNames ); while( ostk1.HasMoreTokens( ) ) oas1.Add( ostk1.GetNextToken( ) ); return( bSetSchemFiles( oas1 ) ); } //************************************************************************************************** // Set the schematic file name/s. // // Argument List: // roasFileNames - A string array containing the full path and file name/s // // Return Values: // true - Success // false - Failure bool PrcGSchem::bSetSchemFiles( const wxArrayString & roasFileNames ) { wxFileName ofn1; size_t szt1; // Clear the current list of schematic files m_oaNameSchems.Clear( ); // Check the argument is empty if( roasFileNames.IsEmpty( ) ) return( true ); // Add the new schematic file name/s to the list for( szt1=0; szt1