Difference between revisions of "Architecture:Data Types"

From The BABEL Development Site
(Data types)
Line 7: Line 7:
 
= Data types =
 
= Data types =
  
<cpp>
+
<idl>
 
struct TLogicalDevice
 
struct TLogicalDevice
 
{
 
{
unsigned long id; // The numerical ID of each device
+
unsigned long id; // The numerical ID of each device
string type; // The logical device type
+
string type; // The logical device type
boolean isChainingPoint; // Whether the device can be the base
+
boolean isChainingPoint; // Whether the device can be the base
//  for other devices.
+
//  for other devices.
unsigned long idOfBase; // The id of the base device
+
unsigned long idOfBase; // The id of the base device
COMMMON::THomogeneousMatrix pose3D; // The 3D pose of this device relative
+
COMMMON::THomogeneousMatrix pose3D; // The 3D pose of this device relative
//  to the base one.
+
//  to the base one.
 +
string implementation; // The name of the HAD layer module.
  
string implementation; // The name of the HAD layer module.
+
COMMMON::SeqOfParamValuePairs params; // The params for the HAD module.
 
 
COMMMON::SeqOfParamValuePairs params; // The params for the HAD module.
 
 
};
 
};
  
 
typedef sequence<TLogicalDevice> SeqOfLogicalDevices;
 
typedef sequence<TLogicalDevice> SeqOfLogicalDevices;
  
</cpp>
+
</idl>

Revision as of 15:10, 17 May 2009

Previous: RPDs Next: Event Codes


Data types

<idl> struct TLogicalDevice { unsigned long id; // The numerical ID of each device string type; // The logical device type boolean isChainingPoint; // Whether the device can be the base // for other devices. unsigned long idOfBase; // The id of the base device COMMMON::THomogeneousMatrix pose3D; // The 3D pose of this device relative // to the base one. string implementation; // The name of the HAD layer module.

COMMMON::SeqOfParamValuePairs params; // The params for the HAD module. };

typedef sequence<TLogicalDevice> SeqOfLogicalDevices;

</idl>