MGIS
Loading...
Searching...
No Matches
BehaviourIntegrationFailureAnalyser.hxx File Reference

The header define some useful features for debugging purposes. More...

#include <string>
#include <functional>
#include <string_view>
#include "MGIS/Config.hxx"
#include "MGIS/Behaviour/BehaviourData.hxx"
#include "MGIS/Behaviour/BehaviourDataView.hxx"

Classes

struct  mgis::behaviour::debug::BehaviourIntegrationFailureAnalyser
 object in charge of analysing and integration failure. This object is used by the integrate_debug function More...
 

Namespaces

namespace  mgis
 the namespace mgis encloses all the MGIS project.
 

Functions

MGIS_EXPORT std::string mgis::behaviour::debug::getBehaviourIntegrationFailureAnalysisFileName (std::string_view, std::string_view)
 
MGIS_EXPORT void mgis::behaviour::debug::setBehaviourIntegrationFailureAnalysisFileNameGenerator (std::function< std::string(std::string_view, std::string_view, std::string_view) >)
 a function hook used to generate a file name for debugging behaviour integration failures
 
MGIS_EXPORT const debug::BehaviourIntegrationFailureAnalysermgis::behaviour::debug::getDefaultBehaviourIntegrationFailureAnalyser ()
 

Detailed Description

The header define some useful features for debugging purposes.

Author
Thomas Helfer
Date
21/08/2025

Function Documentation

◆ getBehaviourIntegrationFailureAnalysisFileName()

MGIS_EXPORT std::string mgis::behaviour::debug::getBehaviourIntegrationFailureAnalysisFileName ( std::string_view  ,
std::string_view   
)
Returns
a file name used to output debugging information in case of integration failure
Parameters
[in]nbehaviour name
[in]extfile name

◆ getDefaultBehaviourIntegrationFailureAnalyser()

MGIS_EXPORT const debug::BehaviourIntegrationFailureAnalyser & mgis::behaviour::debug::getDefaultBehaviourIntegrationFailureAnalyser ( )
Returns
the default debugging options

◆ setBehaviourIntegrationFailureAnalysisFileNameGenerator()

MGIS_EXPORT void mgis::behaviour::debug::setBehaviourIntegrationFailureAnalysisFileNameGenerator ( std::function< std::string(std::string_view, std::string_view, std::string_view) >  )

a function hook used to generate a file name for debugging behaviour integration failures

Parameters
[in]ggenerator
Note
the generator takes the behaviour name as first argument and a unique identifier (for the given process) as second argument