#ifdef __cplusplus extern "C" { #endif #include "EXTERN.h" #include "perl.h" #include "XSUB.h" #include "ppport.h" #ifdef __cplusplus } #endif #include #include using std::string; using aiml::cCore; using aiml::AIMLError; class cAiml : public cCore { public: // Here I could write a function which would call respond() // but doing things more Perl Friendly }; MODULE = AI::AIML PACKAGE = AI::AIML cAiml * cAiml::new() void cAiml::DESTROY() bool cAiml::initialize(const char* file) void cAiml::deinitialize() long cAiml::get_error() const char* cAiml::get_error_str(AIMLError error_num);