title: Is it possible to use C++ classes in nodejs?
body: <p>I have written some classes in C++. I have used OOP. Now I want to use this classes in nodejs. I think it can be done in this ways:</p>
  
  <ol>
  <li>Creating objects of C++ classes in nodejs and calling their methods.</li>
  <li>Calling compiled c++ codes, and get outputs.</li>
  <li>Interacting with running compiled C++ programs (IPC like technology).</li>
  <li>Another way you prefer.</li>
  </ol>
  
  <p>Which of these solutions is feasible?</p>
  
  <p>Note: I have seen nodejs-ffi module, but it seems to use built-in methods only. Is that true?</p>
  
  <p>Lets assume that I have written this:</p>
  
  <pre><code>namespace Math
  {
      class Aljebra
      {
          int Abs(int);
      }
  }
  </code></pre>