Difference between revisions of "DCE Generator"

From LinuxMCE
Jump to: navigation, search
(Imported document)
 
Line 1: Line 1:
<table width="100%"> <tr><td bgcolor="#FFCFCF">This page was written by Pluto and imported with their permission when LinuxMCE branched off in February, 2007.  In general any information should apply to LinuxMCE.  However, this page should be edited to reflect changes to LinuxMCE and remove old references to Pluto.</td></tr> </table><p>To create a new [[Pluto DCE Devices]] to start receive commands immediately.</p>
+
<p>To create a new [[LinuxMCE DCE Devices]] to start receive commands immediately.</p>
 
<p>DCEGen creates a Command class that has stubs for all the commands you need to implement.  The default implementation just echoes to the screen that the command was received and lists the parameters.  The Command class will also have member variables for the device's data, and methods to call to fire events.</p>
 
<p>DCEGen creates a Command class that has stubs for all the commands you need to implement.  The default implementation just echoes to the screen that the command was received and lists the parameters.  The Command class will also have member variables for the device's data, and methods to call to fire events.</p>
 
<p>If you later change the device, adding commands, changing event parameters, removing data, etc., just re-run DCEGen.  It will fix your project file with these changes.  If you already began implementing the commands and changing the class that is not a problem.  DCEGen will simply merge the changes in, creating new methods for new commands, and changing the declarations and definitions for commands that have changed.  It will also re-write the 'Events' and 'Data' section each time since there is nothing for you to implement there.</p>
 
<p>If you later change the device, adding commands, changing event parameters, removing data, etc., just re-run DCEGen.  It will fix your project file with these changes.  If you already began implementing the commands and changing the class that is not a problem.  DCEGen will simply merge the changes in, creating new methods for new commands, and changing the declarations and definitions for commands that have changed.  It will also re-write the 'Events' and 'Data' section each time since there is nothing for you to implement there.</p>

Revision as of 09:59, 19 March 2007

To create a new LinuxMCE DCE Devices to start receive commands immediately.

DCEGen creates a Command class that has stubs for all the commands you need to implement. The default implementation just echoes to the screen that the command was received and lists the parameters. The Command class will also have member variables for the device's data, and methods to call to fire events.

If you later change the device, adding commands, changing event parameters, removing data, etc., just re-run DCEGen. It will fix your project file with these changes. If you already began implementing the commands and changing the class that is not a problem. DCEGen will simply merge the changes in, creating new methods for new commands, and changing the declarations and definitions for commands that have changed. It will also re-write the 'Events' and 'Data' section each time since there is nothing for you to implement there.