Fawkes API  Fawkes Development Version
RedefineWarningCLIPSFeature Class Reference

CLIPS warning on redefinition of names. More...

#include "feature_redefine_warning.h"

Inheritance diagram for RedefineWarningCLIPSFeature:

Public Member Functions

 RedefineWarningCLIPSFeature (fawkes::Logger *logger)
 Constructor. More...
 
virtual ~RedefineWarningCLIPSFeature ()
 Destructor. More...
 
virtual void clips_context_init (const std::string &env_name, fawkes::LockPtr< CLIPS::Environment > &clips)
 Initialize a CLIPS context to use the provided feature. More...
 
virtual void clips_context_destroyed (const std::string &env_name)
 Notification that a CLIPS environment has been destroyed. More...
 
- Public Member Functions inherited from fawkes::CLIPSFeature
 CLIPSFeature (const char *feature_name)
 Constructor. More...
 
virtual ~CLIPSFeature ()
 Virtual empty constructor. More...
 

Additional Inherited Members

- Protected Attributes inherited from fawkes::CLIPSFeature
const std::string clips_feature_name
 CLIPS feature name. More...
 

Detailed Description

CLIPS warning on redefinition of names.

Author
Tim Niemueller

Definition at line 39 of file feature_redefine_warning.h.

Constructor & Destructor Documentation

◆ RedefineWarningCLIPSFeature()

RedefineWarningCLIPSFeature::RedefineWarningCLIPSFeature ( fawkes::Logger logger)

Constructor.

Parameters
loggermessage logger

Definition at line 153 of file feature_redefine_warning.cpp.

◆ ~RedefineWarningCLIPSFeature()

RedefineWarningCLIPSFeature::~RedefineWarningCLIPSFeature ( )
virtual

Destructor.

Definition at line 160 of file feature_redefine_warning.cpp.

Member Function Documentation

◆ clips_context_destroyed()

void RedefineWarningCLIPSFeature::clips_context_destroyed ( const std::string &  env_name)
virtual

Notification that a CLIPS environment has been destroyed.

At this time the CLIPS environment can no longer be accessed. But the event can be used to free internal resources that were associated with the environment.

Parameters
env_namename of destroyed CLIPS environment

Implements fawkes::CLIPSFeature.

Definition at line 188 of file feature_redefine_warning.cpp.

References fawkes::Logger::log_warn().

◆ clips_context_init()

void RedefineWarningCLIPSFeature::clips_context_init ( const std::string &  env_name,
fawkes::LockPtr< CLIPS::Environment > &  clips 
)
virtual

Initialize a CLIPS context to use the provided feature.

This method must be implemented by threads with the CLIPSFeatureAspect. It is called to initialize a particular CLIPS environment that requests to use the provided feature.

Parameters
env_namename of CLIPS environment to initialized.
clipsCLIPS environment to initialize

Implements fawkes::CLIPSFeature.

Definition at line 166 of file feature_redefine_warning.cpp.


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