Octave Wiki | RecentChanges

OctaveEmbedded

Difference (from prior major revision) (no other diffs)

Added: 6a7,10

> Note: In order to check for out of date function symbols you need to update the timestamp periodically:
> #include <octave/input.h>
> ...
> Vlast_prompt_time.stamp();


It is possible to embed octave directly in your application. This work is very preliminary so not all the functionality is addressed, but it should be enough to get started. It involves separating the pieces of octave.cc and toplevel.cc into parts so that read-eval-print loop can be in your application rather than in octave. Once this is done, simple wrappers can be created for the various IPC methods such as pipes and sockets so that applications which use them can handle octave errors more robustly.

Currently we have:

  extern void octave_init(int argc, char *argv[]);
  extern int octave_call(const char *string);
  extern void octave_exit(void);

Note: In order to check for out of date function symbols you need to update the timestamp periodically:

  #include <octave/input.h>
  ...
  Vlast_prompt_time.stamp();

See http://octave.sf.net/octave_embed.tar.gz