My Project
NPLActivationFile.h
1 #pragma once
2 #include "NPLCommon.h"
3 #include "INPLAcitvationFile.h"
4 
5 namespace NPL
6 {
7  class INPLRuntimeState;
8 
21  {
22  public:
23  typedef NPL::NPLReturnCode(*NPL_Activate_CallbackFunc) (INPLRuntimeState* pState);
24 
25  NPL_C_Func_ActivationFile(const std::string& filename);
26  virtual ~NPL_C_Func_ActivationFile(){};
27 
28  virtual NPL::NPLReturnCode OnActivate(INPLRuntimeState* pState);
29  protected:
30  void SetFunctionByName(const std::string& filename);
31  protected:
32  NPL_Activate_CallbackFunc m_pFuncCallBack;
33  };
34 
38  {
39  public:
40  virtual NPL::NPLReturnCode OnActivate(INPLRuntimeState* pState);
41  };
42 }
this is a sample code of how to explicitly define a INPLActivationFile handler in C++...
Definition: NPLActivationFile.h:37
define this to enable debugging of NPL code in visual studio
Definition: INPL.h:9
INPLRuntimeState interface for DLL interface.
Definition: INPLRuntimeState.h:27
virtual NPL::NPLReturnCode OnActivate(INPLRuntimeState *pState)
Function to be called when NPL.activate(filename, {msg}); subclass should always overwrite this funct...
Definition: NPLActivationFile.cpp:24
Definition: INPLAcitvationFile.h:18
for automatic C function NPL.activate() without registration.
Definition: NPLActivationFile.h:20