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.
--
Job board: http://jobs.nodejs.org/
New group rules:
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/nodejs/44ca35f1-e56a-4790-a24a-3fce07a13b43%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.