|
int __stdcall | DllMain (void *, unsigned, void *) |
| This function is required by all DLLs. See Win32 documentation for details.
|
|
EXPORT_TAG const char * | getName () |
|
EXPORT_TAG unsigned | getMajorVersion () |
|
EXPORT_TAG unsigned | getMinorVersion () |
|
EXPORT_TAG void * | createInstance () |
|
| FishExample::FishExample (uint id, const QString &name, int numArguments, const QString &returnDescription, bool readOnly=true, const QString &argumentDescription=QString::null) |
|
virtual QString | FishExample::getPluginName () const |
| Name identifying the plugin that is adding possibly many intrinsics.
|
|
virtual QStringList | FishExample::createIntrinsics (IFish *fish) |
| Creates 7 instances of this class for each intrinsic, and registers them, then calls delete this.
|
|
virtual void | FishExample::get (IProgram *prog, uint id, const IFishArguments *reg, IFishParam *p) |
| Called if the intrinsic appears on the right-hand-side of an assignment.
|
|
virtual void | FishExample::set (IProgram *prog, uint id, const IFishArguments *reg, const IFishParam *p) |
| Called if the intrinsic appears on the left-hand-side of an assignment.
|
|
virtual void | FishExample::archiveLibrary (IArchive &a) |
| Saves/Restores data to the archive.
|
|
virtual void | FishExample::saveLibrary (Archive2 &a) const override |
|
virtual bool | FishExample::restoreLibrary (Archive2 &a, quint64 label) override |
|
virtual void | FishExample::remapLibrary (Archive2 &a) override |
|
virtual void | FishExample::reset () |
| Clears data to the default settings, when a NEW Model is created.
|
|
FishExample::FishExample |
( |
uint | id, |
|
|
const QString & | name, |
|
|
int | numArguments, |
|
|
const QString & | returnDescription, |
|
|
bool | readOnly = true, |
|
|
const QString & | argumentDescription = QString::null ) |
The contructor allows you to specify the id, name, argumenst, and other data associated with this particular intrinsic.
Recall that a separate instance of the library class is created for each intrinsic added.
Each separate intrinsic is identified by a unique ID number.
In this implementation, the intrinsic specific data is stored as members and assigned on construction.
Another valid implementation would be to store nothing locally but the ID and use CASE Statements (or similar) in the implementaion of getName(), getReadOnly(), etc.