/home5/piconepr/public_html/isip/projects/speech/software/documentation/class/math/scalar/MScalar/mscl_04.cc
// file: $isip/class/math/scalar/MScalar/mscl_04.cc
// version: $Id: mscl_04.cc 6807 2001-04-24 15:28:14Z peng $
//
// isip include files
//
#include "MScalarMethods.h"
#include "MScalar.h"
#include <typeinfo>
[snipped]
// method: write
//
// arguments:
// const MScalar<TIntegral, TSize>& this: (output) class operand
// 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
//
template<class TIntegral, class TSize>
boolean MScalarMethods::write(const MScalar<TIntegral, TSize>& this_a,
Sof& sof_a, long tag_a, const String& name_a) {
long obj_size;
if (sof_a.isText()) {
obj_size = Sof::ANY_SIZE;
}
else {
obj_size = this_a.sofSize();
}
// put the object into the sof file's index
//
if (!sof_a.put(name_a, tag_a, obj_size)) {
return false;
}
// exit gracefully
//
return this_a.writeData(sof_a);
}
[snipped]
//
// end of file
Up |
Home |
Courses |
Projects |
Proposals |
Publications
Please direct questions or comments to
joseph.picone@isip.piconepress.com