|
From: <wsh...@us...> - 2003-08-08 14:44:48
|
Update of /cvsroot/emc/rcslib/src/test
In directory sc8-pr-cvs1:/tmp/cvs-serv4527
Added Files:
Tag: wps_multiplat_dev_branch
nml_ex1.cc
Log Message:
.
--- NEW FILE: nml_ex1.cc ---
/*
* New C++ File starts here.
* This file should be named nml_ex1.cpp
*/
// Include all NML, CMS, and RCS classes and functions
#include "rcs.hh"
// Include command and status message definitions
#include "nml_ex1.hh"
// Forward Function Prototypes
void PmCartesian_update(CMS *cms, PmCartesian *x);
/*
* NML/CMS Format function : ex_format
* Automatically generated by RCS Java Diagnostics Tool.
* on Tue Feb 04 13:28:52 EST 2003
*/
int ex_format(NMLTYPE type, void *buffer, CMS *cms)
{
switch(type)
{
case EXAMPLE_MSG_TYPE:
((EXAMPLE_MSG *) buffer)->update(cms);
break;
default:
return(0);
}
return 1;
}
// NML Symbol Lookup Function
const char *ex_symbol_lookup(int type)
{
switch(type)
{
case EXAMPLE_MSG_TYPE:
return "EXAMPLE_MSG";
default:
return"UNKNOWN";
break;
}
return(NULL);
}
/*
* NML/CMS Update function for EXAMPLE_MSG
* Automatically generated by RCS Java Diagnostics Tool.
* on Tue Feb 04 13:28:52 EST 2003
*/
void EXAMPLE_MSG::update(CMS *cms)
{
cms->update(d);
cms->update(f);
cms->update(c);
cms->update(s);
cms->update(i);
cms->update(l);
cms->update(uc);
cms->update(us);
cms->update(ui);
cms->update(ul);
cms->update(da_length);
cms->update(da,da_length);
}
/*
* NML/CMS Update function for PmCartesian
* Automatically generated by RCS Java Diagnostics Tool.
* on Tue Feb 04 13:28:52 EST 2003
*/
void PmCartesian_update(CMS *cms,PmCartesian *x)
{
cms->update(x->x);
cms->update(x->y);
cms->update(x->z);
}
|