// ========================================================================== // // @(#) $Id: test4.C,v 1.4 2000/10/19 03:21:57 brian Exp $ // // -------------------------------------------------------------------------- // // Copyright (C) 1997-2000 Brian Bidulock // // All Rights Reserved. // // This library is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation; either version 2.1 of the License, or (at // your option) any later version. // // This library is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser Public License // for more details. // // You should have received a copy of the GNU Lesser General Public License // along with this library; if not, write to the Free Software Foundation, // Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // Last Modified $Date: 2000/10/19 03:21:57 $ by $Author: brian $ // // -------------------------------------------------------------------------- // // $Log: test4.C,v $ // Revision 1.4 2000/10/19 03:21:57 brian // Whoops, messed up when adding headers. // // Revision 1.3 2000/10/13 15:45:51 brian // First public release. // // ========================================================================== static char const ident[] = "$Id: test4.C,v 1.4 2000/10/19 03:21:57 brian Exp $"; #pragma implementation #include "ISUP_Codec.H" #include int len = 1000; char fme[1000]; main() { Codec_ISUP anISUP; Codec_ISUP* ISUP = &anISUP; int i; len = 1000; Codec::rebuild(); ISUP->IAM->build(); ISUP->OPARMS->CGPN->build(); Codec** parm = (Codec**)&(ISUP->OPARMS->CLRF); for (i=0;i<53;i++) parm[i]->build(); cout << "Encoding...\n"; if (Codec::encode(ISUP,fme,len)) cout.form("Encoded %d bytes: ",len); for (i=0;iIAM->build(); cout << "Encoding...\n"; if (Codec::encode(ISUP,fme,len)) cout.form("Encoded %d bytes: ",len); for (i=0;i