Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

EMC_TOOL_STAT Class Reference

#include <emc.hh>

Inheritance diagram for EMC_TOOL_STAT:

Inheritance graph
[legend]
Collaboration diagram for EMC_TOOL_STAT:

Collaboration graph
[legend]

Public Methods

 EMC_TOOL_STAT ()
void update (CMS *cms)
EMC_TOOL_STAT operator= (EMC_TOOL_STAT s)

Data Fields

int toolPrepped
int toolInSpindle
CANON_TOOL_TABLE toolTable [CANON_TOOL_MAX+1]

Constructor & Destructor Documentation

EMC_TOOL_STAT::EMC_TOOL_STAT  
 

Definition at line 140 of file emcops.cc.

00140                              :
00141   EMC_TOOL_STAT_MSG(EMC_TOOL_STAT_TYPE, sizeof(EMC_TOOL_STAT))
00142 {
00143   int t;
00144 
00145   toolPrepped = 0;
00146   toolInSpindle = 0;
00147 
00148   for (t = 0; t <= CANON_TOOL_MAX; t++)
00149     {
00150       toolTable[t].id = 0;
00151       toolTable[t].length = 0.0;
00152       toolTable[t].diameter = 0.0;
00153     }
00154 }


Member Function Documentation

EMC_TOOL_STAT EMC_TOOL_STAT::operator= EMC_TOOL_STAT    s
 

Definition at line 208 of file emcops.cc.

00209 {
00210   int t;
00211 
00212   toolPrepped = s.toolPrepped;
00213   toolInSpindle = s.toolInSpindle;
00214 
00215   for (t = 0; t <= CANON_TOOL_MAX; t++)
00216     {
00217       toolTable[t].id = s.toolTable[t].id;
00218       toolTable[t].length = s.toolTable[t].length;
00219       toolTable[t].diameter = s.toolTable[t].diameter;
00220     }
00221 
00222   return s;
00223 }

void EMC_TOOL_STAT::update CMS *    cms
 

Reimplemented from EMC_TOOL_STAT_MSG.

Definition at line 980 of file emc.cc.

Referenced by EMC_IO_STAT::update().

00981 {
00982 
00983         EMC_TOOL_STAT_MSG::update(cms);
00984         cms->update(toolPrepped);
00985         cms->update(toolInSpindle);
00986         for(int i_toolTable = 0;i_toolTable < 33 ;i_toolTable++)
00987                 CANON_TOOL_TABLE_update(cms,&(toolTable[i_toolTable]));
00988 
00989 }


Field Documentation

int EMC_TOOL_STAT::toolInSpindle
 

Definition at line 2115 of file emc.hh.

Referenced by operator=().

int EMC_TOOL_STAT::toolPrepped
 

Definition at line 2114 of file emc.hh.

Referenced by operator=().

CANON_TOOL_TABLE EMC_TOOL_STAT::toolTable[CANON_TOOL_MAX + 1]
 

Definition at line 2116 of file emc.hh.

Referenced by operator=().


The documentation for this class was generated from the following files:
Generated on Sun Dec 2 15:29:03 2001 for EMC by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001