Next: Finding the Noticeboard
Up: Examples of Using the NBS Routines
Previous: Defining the Noticeboard Contents
Having defined the noticeboard contents, the actual noticeboard must be
created. There are three ways of doing this, depending on whether the
definition is being read from a file, the definition plus data is being read
from a file (this is illustrated in Section 3.7), or the noticeboard is being created in memory.
Restore the noticeboard definition from a file and create the noticeboard
...
NBS_RESTORE_DEFINITION (`AUTOFIB', ! Noticeboard name
`AUTOFIB', ! Name of noticeboard file
STATUS)
...or, instead of issuing the above NBS_END_DEFINITION call, issue
this one.
NBS_END_DEFINITION (`AUTOFIB', ! Noticeboard name
`CREATE_NOTICEBOARD', ! Don't write a file
STATUS)
- Regardless of which method is used, the situation is the same after either
of these calls. The former would normally be used if the noticeboard definition
had been compiled earlier by another program and the latter would be used if
the noticeboard had just been defined and if no noticeboard definition file was
required.
- The noticeboard now exists and is owned by this process. All items in it
have an actual size of zero and a modified count of zero.
Next: Finding the Noticeboard
Up: Examples of Using the NBS Routines
Previous: Defining the Noticeboard Contents
NBS The Noticeboard System
Starlink User Note 77
D.J. Allan
11 September 1995
E-mail:ussc@star.rl.ac.uk