Nodebook
  • Introduction
  • Methods
  • Default Classes
    • Nodebook
  • JS
    • JSONotebook
    • JSNotebook
    • TSNotebook
  • Java
    • JavaNotebook
  • C/C++
    • CPPNotebook
    • CNotebook
    • HeaderNotebook
  • Text
    • TXTNotebook
    • MDNotebook
    • PlainNotebook
  • Web
    • HTMLNotebook
    • CSSNotebook
      • CSSStyle
  • Other
    • YMLNotebook
    • BashNotebook
  • Python
    • PYNotebook
Powered by GitBook
On this page
  • Usage
  • Setup

Was this helpful?

  1. C/C++

HeaderNotebook

extends Nodebook

"HeaderNotebook" is used for .h or .hpp files.

Usage

Setup

const Nodebook = require('nodejs-notebook');

const cheader = new Nodebook.HeaderNotebook('kihei');
const cheaderClone = new Nodebook.HeaderNotebook('kihei2', 'c');
// Creates a .h used for C and C++ files

const cppheader = new Nodebook.HeaderNotebook('maloi', 'c++');
// Creates a .hpp used for C++ files

/*
Header defaults to .h when not provided or is not a 
valid language
*/

include(module)

string module: The module to include.

cheader.include('stdio.h');

cppheader.include('iostream');
PreviousCNotebookNextTXTNotebook

Last updated 4 years ago

Was this helpful?