LispWorks User Guide and Reference Manual > 18 Dynamic Data Exchange > 18.3 Server interface > 18.3.3 Topics

NextPrevUpTopContentsIndex

18.3.3.3 The system topic

The system topic is implemented as a predefined dispatching topic called :system . It is automatically available to all defined DDE servers. Its class is dde-system-topic, which is a subclass of dde-topic.

The following items are implemented by the system topic:

SZDDESYS_ITEM_TOPICS

Constant

The constant SZDDESYS_ITEM_TOPICS has the value " Topics" . Referring to this item in the system topic calls dde-server-topics to obtain a list of topics implemented by the server. The server should define a method on this generic function to return a list of strings naming the topics supported by the server. If this item is not to be implemented, do not define a method on the function, or define a method that returns :unknown .

SZDDESYS_ITEM_SYSITEMS

Constant

The constant SZDDESYS_ITEM_SYSITEMS has the value " SysItems ". Referring to this item in the system topic calls dde-topic-items to obtain a list of items implemented by the system topic. If a server implements additional system topic items it should define a method on the generic function specialized on its server class and dde-system-topic returning the complete list of supported topics. The server can return :unknown if this item is not to be implemented.

SZDDESYS_ITEM_FORMATS

Constant

The constant SZDDESYS_ITEM_FORMATS has the value " Formats ", and returns unicodetext and text . Currently only text formats are supported.

The system topic is a single object which is used by all DDE servers running in the Lisp image. You should therefore not under normal circumstances modify it with define-dde-server-function by specifying a value of :system for the topic argument, as this would make the changes to the system topic visible to all users of DDE within the Lisp image.

Instead, specify :server my-server :topic :system , where my-server is the name of your DDE server. This makes the additional items available only on the system topic of the specified server.

 


LispWorks User Guide and Reference Manual - 22 Dec 2009

NextPrevUpTopContentsIndex