Hello, I am new in nodejs addon, I have a newbie question.
I have a class in C++ as following:
class CConfigInterface: public IKnown
{
public:
virtual int Load(const char *szFileName) = 0;
virtual int Save(const char *szFileName) = 0;
virtual const char * GetString(const char *szSection, const char *szEntry, const char *szDefault) = 0;
virtual int GetInt(const char *szSection, const char *szEntry, int iDefault) = 0;
virtual int SetString(const char *szSection, const char *szEntry, const char *szValue) = 0;
virtual int SetInt(const char *szSection, const char *szEntry, int iValue) = 0;
};
which is defined in config,h
if I want to do: CConfigInterface * lpConfig = NewConfig(); in nodejs addon
what does the syntax looks in .cc file? Can I directly include "config.h"?
Thank you in advance.