*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> Vk/VkCmdRegistry (3)              


VkCmdRegistry(3x)					     VkCmdRegistry(3x)

NAME    [Toc]    [Back]

     VkCmdRegistry - registry for named	command	classes

INHERITS FROM    [Toc]    [Back]


HEADER FILE    [Toc]    [Back]

     #include <Vk/VkCmdRegistry.h>

CLASS DESCRIPTION    [Toc]    [Back]

	  A central location in	which to register classes by name, for later
	  use by VkCmdManager or VkCmdFactory objects. See VkCmd for more

OVERVIEW    [Toc]    [Back]

	  Commands can be executed by name, provided the command registers
	  itself with the VkCmdRegistry, a globally available list that	links
	  unique names to a mechanism for creating command objects. Once
	  registered, a	command	can be invoked by the VkCmdManager by name:


	  To participate in this scheme, commands must register	themselves.
	  This is made easy by two macros. The class record should include the


	  in the public	portion	of the class record, and also include the

	     VK_CMD_IMPLEMENT(ClassName, "ClassName");

	  somewhere in the source file.	The first argument is the class	name,
	  while	the second is a	unique identifier for this command, which is
	  usually the class name as well.

	  Before the first time	the class is used, the program must call:

									Page 1

VkCmdRegistry(3x)					     VkCmdRegistry(3x)


	  where	ClassName is the same of the class. In the future, the should
	  be a class that is able to extract and invoke	the initClass()	method
	  from a DSO, allowing for "plugin" commands.

SAMPLE CODE    [Toc]    [Back]


SEE ALSO    [Toc]    [Back]

     VkCmd, VkCmdManager
     ViewKit Programmer's Guide
     The X Window System, DEC Press, Bob Sheifler and Jim Gettys
     The X Window System Toolkit, DEC Press, Paul Asente and Ralph Swick
     The OSF/Motif Programmers Reference, Prentice Hall, OSF

									PPPPaaaaggggeeee 2222
[ Back ]
 Similar pages
Name OS Title
pathfind IRIX search for named file in named directories
sbuf.prot IRIX interface for derived classes
class_get_classes Tru64 get classes for a class scheduling database
XmDropSite Tru64 The DropSite Registry
XmRendition HP-UX The Rendition registry
XmDropSite IRIX The DropSite Registry
XmDropSite HP-UX The DropSite Registry
class_scheduling Tru64 Allocate CPU resources based on scheduling classes
class.h Tru64 Allocate CPU resources based on scheduling classes
UNIVERSAL IRIX base class for ALL classes (blessed references)
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service