ProcessParameter::ProcessParameter( const Process& process, const IsoString& paramId ) { m_data = new ProcessParameterPrivate( (*API->Process->GetParameterByName)( process.Handle(), paramId.c_str() ) ); if ( m_data->handle == nullptr ) { if ( paramId.IsEmpty() ) throw Error( "ProcessParameter: Empty process parameter identifier specified" ); if ( !paramId.IsValidIdentifier() ) throw Error( "ProcessParameter: Invalid process parameter identifier specified: \'" + paramId + '\'' ); throw Error( "ProcessParameter: No parameter was found " "with the specified identifier \'" + paramId + "\' for process \'" + process.Id() + '\'' ); } }
ProcessInstance::ProcessInstance( const Process& process ) : UIObject( (*API->Process->CreateProcessInstance)( ModuleHandle(), process.Handle() ) ) { if ( handle == 0 ) throw APIFunctionError( "CreateProcessInstance" ); }