nodejs c++ addon question

21 views
Skip to first unread message

late close

unread,
Mar 2, 2016, 5:13:56 PM3/2/16
to nodejs
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.
Reply all
Reply to author
Forward
0 new messages