VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions
DtSystemHealthCheck Class Reference

Class that is used to define a health check. More...

Inheritance diagram for DtSystemHealthCheck:
Inheritance graph
[legend]

Public Member Functions

 DtSystemHealthCheck (makVrv::DtDe &de, DtUiHealthCheck *)
 DtSystemHealthCheck (const DtSystemHealthCheck &)
virtual ~DtSystemHealthCheck ()
virtual bool passesCheck (const DtComponentSystemDefinition *, QString &error, bool &continueOn) const =0
 Implement to see if this system passes the given check.
virtual void fix (DtComponentSystemDefinition *)=0
 Implement to fix the issue on the given system.
- Public Member Functions inherited from DtHealthCheck
 DtHealthCheck (makVrv::DtDe &de, DtUiHealthCheck *)
 DtHealthCheck (const DtHealthCheck &)
virtual ~DtHealthCheck ()
virtual DtHealthCheckclone () const =0
 Clone this object.
virtual const charname () const =0
 Internal name that can be used to map to ui file to disallow inclusion of this rule.
virtual void attemptHealthFix (const QString &)

Additional Inherited Members

- Protected Attributes inherited from DtHealthCheck
makVrv::DtDemyDe
DtUiHealthCheckmyParent

Detailed Description

Class that is used to define a health check.

Return true if passes, and, if false implement the fix() method to fix the issue

Constructor & Destructor Documentation

DtSystemHealthCheck::DtSystemHealthCheck ( makVrv::DtDe de,
DtUiHealthCheck  
)
DtSystemHealthCheck::DtSystemHealthCheck ( const DtSystemHealthCheck )
virtual DtSystemHealthCheck::~DtSystemHealthCheck ( )
virtual

Member Function Documentation

virtual bool DtSystemHealthCheck::passesCheck ( const DtComponentSystemDefinition ,
QString &  error,
bool continueOn 
) const
pure virtual

Implement to see if this system passes the given check.

If continueOn is set to false no further checks will be made

Implemented in DtTargetPriorityCannotHit, DtHasApplicableTargets, DtHasAmmunition, DtHasInvalidAmmunition, DtHasValidAmmunition, DtTargetTypeValid, DtSystemHasValidTargetType, DtSystemCanAttack, DtCanBeDamaged, and DtSystemIsValid.

virtual void DtSystemHealthCheck::fix ( DtComponentSystemDefinition )
pure virtual

The documentation for this class was generated from the following file:

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)