//************************************************************************************************** // SimnBase.cpp * // -------------- * // Started : 2008-05-01 * // Last Update : 2016-10-01 * // Copyright : (C) 2008-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 "SimnBase.hpp" //************************************************************************************************** // Constructor. SimnBase::SimnBase( void ) { m_eSimEng = eSIMR_NONE; // Initialize all object attributes bClear( ); } //************************************************************************************************** // Destructor. SimnBase::~SimnBase( ) { } //************************************************************************************************** // Extract the source component. // // Several tasks are performed here : // - Search for a component which is being used as a signal source. // - Extract the source component's original definition. // - Set the attribute m_oCpntSwpSrc to the source component definition. // - Set the component in m_oaCpnts to it's original definition. // // Return Values : // true - Success // false - Failure bool SimnBase::bLoadSigSrc( void ) { Component oCpnt; wxString os1; size_t sz1; // Scan the circuit description for a source component for( sz1=0; sz1