#include cdevPacket::ImportTable * cdevPacket::importTables = NULL; int cdevPacket::maxTables = 0; // ***************************************************************************** // * cdevPacket::import : // * The import mechanism will walk through the importTables and attempt to // * locate an entry that has the same packet version as the cdevPacketBinary // * parameter. If a matching netry is found, then it will be used to decode // * the binary and create a cdevPacket object from it, otherwise NULL will // * be returned. // * // * Note: Subclasses of the cdevPacket class that wish to employ this // * functionality must register their import methods and their packet // * versions using the registerImportMethod mechanism. // ***************************************************************************** cdevPacket * cdevPacket::import ( cdevPacketBinary & packet ) { short packetVersion = 0; int idx = 0; int found = 0; cdevPacket * result = NULL; packet.getVersion(packetVersion); while(idx