My Project
Public Member Functions | Protected Attributes | List of all members
NPL::INPLActivationFile Class Referenceabstract
Inheritance diagram for NPL::INPLActivationFile:
CNPLFile_ServerMainLoop NPL::CNPLFile_Stats NPL::NPL_C_Func_ActivationFile

Public Member Functions

virtual NPL::NPLReturnCode OnActivate (INPLRuntimeState *pState)=0
 Function to be called when NPL.activate(filename, {msg}); subclass should always overwrite this function. More...
 
void addref () const
 add reference count of the object. More...
 
bool delref () const
 decrease reference count of the object. More...
 
int GetRefCount () const
 get the reference count
 
virtual int Release ()
 

Protected Attributes

int m_refcount
 

Member Function Documentation

§ addref()

void NPL::INPLActivationFile::addref ( ) const
inline

add reference count of the object.

§ delref()

bool NPL::INPLActivationFile::delref ( ) const
inline

decrease reference count of the object.

Returns
: return true if the the reference count is zero after decreasing it

§ OnActivate()

virtual NPL::NPLReturnCode NPL::INPLActivationFile::OnActivate ( INPLRuntimeState pState)
pure virtual

Function to be called when NPL.activate(filename, {msg}); subclass should always overwrite this function.

usage: the input message in secure code format. Read data as follows: auto msg = NPLHelper::MsgStringToNPLTable(pState->GetCurrentMsg(), pState->GetCurrentMsgLength()); std::string sType = msg["type"];

Implemented in CNPLFile_ServerMainLoop, NPL::CNPLFile_Stats, and NPL::NPL_C_Func_ActivationFile.


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