Standard component implementation of interface iinsp::IInspectionTask. More...
#include <CInspectionTaskComp.h>
Classes | |
class | MessageContainer |
class | Parameters |
class | Status |
class | TaskStatusObserver |
Public Types | |
enum | MessageId { MI_BAD_PARAMS_COUNT = 0x5af30, MI_NO_SUBTASK, MI_LOCAL } |
typedef ilog::CLoggerComponentBase | BaseClass |
typedef imod::CModelUpdateBridge | BaseClass2 |
![]() | |
enum | WorkStatus { WS_INVALID, WS_INIT, WS_LOCKED, WS_OK, WS_CANCELED, WS_FAILED } |
enum | ChangeFlags { CF_SUPPLIER_RESULTS = 0x6326415 } |
Data model change notification flags. More... | |
enum | MessageContainerType { MCT_RESULTS, MCT_TEMP, MTC_LAST = MCT_TEMP } |
Public Member Functions | |
I_REGISTER_SUBELEMENT_INTERFACE_T (Parameters, iprm::IParamsSet, ExtractParameters) | |
I_REGISTER_SUBELEMENT_INTERFACE_T (Parameters, iser::ISerializable, ExtractParameters) | |
I_REGISTER_SUBELEMENT_INTERFACE_T (Parameters, istd::IChangeable, ExtractParameters) | |
I_REGISTER_SUBELEMENT_INTERFACE_T (Parameters, imod::IModel, ExtractParameters) | |
CInspectionTaskComp () | |
virtual int | GetSubtasksCount () const |
Get number of inspection steps (subtasks). More... | |
virtual iinsp::ISupplier * | GetSubtask (int subtaskIndex) const |
Get single inspection steps (subtasks). More... | |
virtual iprm::IParamsSet * | GetGeneralParameters () const |
Get general parameters additionaly stored next to parameters stored in suppliers. More... | |
virtual bool | Serialize (iser::IArchive &archive) |
virtual int | GetWorkStatus () const |
Get status of last work. More... | |
virtual imod::IModel * | GetWorkStatusModel () const |
Get access to the status model of the supplier. More... | |
virtual void | InvalidateSupplier () |
Called to signalize that this supplier is invalid. More... | |
virtual void | EnsureWorkInitialized () |
Force the supplier to initialize its work. More... | |
virtual void | EnsureWorkFinished () |
Ensure that all objects are produced. More... | |
virtual void | ClearWorkResults () |
Remove all stored work results. More... | |
virtual const ilog::IMessageContainer * | GetWorkMessages (int messageType) const |
Get messages outputted by this work. More... | |
virtual iprm::IParamsSet * | GetModelParametersSet () const |
Get parameter set using by this supplier. More... | |
virtual QDateTime | GetInformationTimeStamp () const |
virtual InformationCategory | GetInformationCategory () const |
virtual int | GetInformationId () const |
virtual QString | GetInformationDescription () const |
virtual QString | GetInformationSource () const |
virtual int | GetInformationFlags () const |
![]() | |
virtual void | SetLogPtr (IMessageConsumer *logPtr)=0 |
virtual IMessageConsumer * | GetLogPtr () const =0 |
virtual void | SetTracingEnabled (bool trace)=0 |
virtual bool | IsTracingEnabled () const =0 |
Protected Types | |
typedef imod::TModelWrap< Status > | StatusModel |
typedef QVector < iinsp::ISupplier * > | Suppliers |
typedef imod::TModelWrap < Parameters > | ParametersModel |
typedef istd::TDelPtr < istd::CChangeNotifier > | NotifierPtr |
typedef QMap< iinsp::ISupplier *, NotifierPtr > | SubtaskNotifiers |
![]() | |
enum | UpdateFlags |
Protected Member Functions | |
void | EnsureStatusKnown () |
virtual void | OnComponentCreated () |
virtual void | OnComponentDestroyed () |
virtual void | AfterUpdate (imod::IModel *modelPtr, const istd::IChangeable::ChangeSet &changeSet) |
![]() | |
virtual void | DecorateMessage (istd::IInformationProvider::InformationCategory category, int id, int flags, QString &message, QString &messageSource) const |
![]() | |
CModelUpdateBridge (istd::IChangeable *changeablePtr, int updateFlags=UF_DELEGATED) | |
virtual | ~CModelUpdateBridge () |
imod::IModel * | GetObservedModel (int modelIndex) const |
int | GetModelCount () const |
void | EnsureModelsDetached () |
virtual bool | IsModelAttached (const imod::IModel *modelPtr) const |
virtual bool | OnModelAttached (imod::IModel *modelPtr, istd::IChangeable::ChangeSet &changeMask) |
virtual bool | OnModelDetached (imod::IModel *modelPtr) |
virtual void | BeforeUpdate (imod::IModel *modelPtr) |
Static Protected Member Functions | |
template<class InterfaceType > | |
static InterfaceType * | ExtractParameters (CInspectionTaskComp &component) |
Protected Attributes | |
Suppliers | m_subtasks |
ParametersModel | m_parameters |
bool | m_isStatusKnown |
QDateTime | m_resultTypeStamp |
InformationCategory | m_resultCategory |
QString | m_resultDescription |
MessageContainer | m_resultMessages |
MessageContainer | m_tempContainer |
istd::IChangeable::ChangeSet | m_supplierResultsChangeSet |
SubtaskNotifiers | m_subtaskNotifiers |
TaskStatusObserver | m_subTaskStatusObserver |
StatusModel | m_workStatus |
Standard component implementation of interface iinsp::IInspectionTask.
Serializing of this object serialize all inspection parameters.
Parameters
represents the parameter of all sub-tasks.Definition at line 35 of file CInspectionTaskComp.h.
Definition at line 43 of file CInspectionTaskComp.h.
Definition at line 44 of file CInspectionTaskComp.h.
|
protected |
Definition at line 221 of file CInspectionTaskComp.h.
|
protected |
Definition at line 202 of file CInspectionTaskComp.h.
|
protected |
Definition at line 185 of file CInspectionTaskComp.h.
|
protected |
Definition at line 223 of file CInspectionTaskComp.h.
|
protected |
Definition at line 199 of file CInspectionTaskComp.h.
Enumerator | |
---|---|
MI_BAD_PARAMS_COUNT | |
MI_NO_SUBTASK | |
MI_LOCAL |
Definition at line 46 of file CInspectionTaskComp.h.
iinsp::CInspectionTaskComp::CInspectionTaskComp | ( | ) |
|
protectedvirtual |
Reimplemented from imod::CModelUpdateBridge.
|
virtual |
|
protected |
|
virtual |
Ensure that all objects are produced.
Implements iinsp::ISupplier.
|
virtual |
Force the supplier to initialize its work.
First if work is initialized, new calculation can be done.
Implements iinsp::ISupplier.
|
inlinestaticprotected |
Definition at line 206 of file CInspectionTaskComp.h.
References m_parameters.
|
virtual |
Get general parameters additionaly stored next to parameters stored in suppliers.
Implements iinsp::IInspectionTask.
|
virtual |
Implements istd::IInformationProvider.
|
virtual |
Implements istd::IInformationProvider.
|
virtual |
Implements istd::IInformationProvider.
|
virtual |
Implements istd::IInformationProvider.
|
virtual |
Implements istd::IInformationProvider.
|
virtual |
Implements istd::IInformationProvider.
|
virtual |
Get parameter set using by this supplier.
The pointed object will not be relocated - no reconnect is needed if it is observed. If the supplier doesn't support parameters, it returns NULL.
Implements iinsp::ISupplier.
|
virtual |
Get single inspection steps (subtasks).
Implements iinsp::IInspectionTask.
|
virtual |
Get number of inspection steps (subtasks).
Implements iinsp::IInspectionTask.
|
virtual |
Get messages outputted by this work.
The pointed object will not be relocated - no reconnect is needed if it is observed. If the supplier doesn't support list of messages, it returns NULL.
containerType | type of message container, |
Implements iinsp::ISupplier.
|
virtual |
Get status of last work.
Please note, that this status is not a part of supplier model and can be changed without any notification. If you want to observe the status model of the supplier, please use the GetWorkStatusModel method.
Implements iinsp::ISupplier.
|
virtual |
Get access to the status model of the supplier.
Implements iinsp::ISupplier.
iinsp::CInspectionTaskComp::I_REGISTER_SUBELEMENT_INTERFACE_T | ( | Parameters | , |
iprm::IParamsSet | , | ||
ExtractParameters | |||
) |
iinsp::CInspectionTaskComp::I_REGISTER_SUBELEMENT_INTERFACE_T | ( | Parameters | , |
iser::ISerializable | , | ||
ExtractParameters | |||
) |
iinsp::CInspectionTaskComp::I_REGISTER_SUBELEMENT_INTERFACE_T | ( | Parameters | , |
istd::IChangeable | , | ||
ExtractParameters | |||
) |
iinsp::CInspectionTaskComp::I_REGISTER_SUBELEMENT_INTERFACE_T | ( | Parameters | , |
imod::IModel | , | ||
ExtractParameters | |||
) |
|
virtual |
Called to signalize that this supplier is invalid.
This signal will be transfered to all supplier which are registered as output.
Implements iinsp::ISupplier.
|
protectedvirtual |
|
protectedvirtual |
|
virtual |
|
protected |
Definition at line 211 of file CInspectionTaskComp.h.
|
mutableprotected |
Definition at line 203 of file CInspectionTaskComp.h.
Referenced by ExtractParameters().
|
protected |
Definition at line 214 of file CInspectionTaskComp.h.
|
protected |
Definition at line 215 of file CInspectionTaskComp.h.
|
protected |
Definition at line 217 of file CInspectionTaskComp.h.
|
protected |
Definition at line 213 of file CInspectionTaskComp.h.
|
protected |
Definition at line 224 of file CInspectionTaskComp.h.
|
protected |
Definition at line 200 of file CInspectionTaskComp.h.
|
protected |
Definition at line 226 of file CInspectionTaskComp.h.
|
protected |
Definition at line 220 of file CInspectionTaskComp.h.
|
protected |
Definition at line 218 of file CInspectionTaskComp.h.
|
protected |
Definition at line 228 of file CInspectionTaskComp.h.
© 2007-2017 Witold Gantzke and Kirill Lepskiy