/home5/piconepr/public_html/isip/projects/speech/software/documentation/class/algo/Energy/enrgy_04.cc
// file: $isip/class/algo/Energy/enrgy_04.cc
// version: $Id: enrgy_04.cc 7515 2001-12-11 17:47:43Z gao $
//
// isip include files
//
#include "Energy.h"
[snipped]
// method: write
//
// arguments:
// Sof& sof: (input) sof file object
// long tag: (input) sof object instance tag
// const String& name: (input) sof object instance name
//
// return: a boolean value indicating status
//
// this method has the object write itself to an Sof file
//
boolean Energy::write(Sof& sof_a, long tag_a, const String& name_a) const {
// declare local variable
//
long obj_size;
// write the instance of the object into the Sof file
//
if (sof_a.isText()) {
// set the size to be dynamic
//
obj_size = Sof::ANY_SIZE;
}
else {
// set the size to be the size of the object written to the Sof file
//
obj_size = sofSize();
}
// write the object into the sof file's index
//
if (!sof_a.put(name_a, tag_a, obj_size)) {
return false;
}
// write data and exit gracefully
//
return writeData(sof_a);
}
[snipped]
//
// end of file
Up |
Home |
Courses |
Projects |
Proposals |
Publications
Please direct questions or comments to
joseph.picone@isip.piconepress.com