/* Copyright © 2003, Russell C. Hay All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: i. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. ii. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. iii. Neither the name of the dead[protocol]society nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #ifndef PROTOCOL_H #define PROTOCOL_H class protocol { public: protocol(); ~protocol(); action parse(char *s, int len); protected: action parseBCmds(char *s, int len); action parseCCmds(char *s, int len); action parseDCmds(char *s, int len); action parseFCmds(char *s, int len); action parseGCmds(char *s, int len); action parseHCmds(char *s, int len); action parseNCmds(char *s, int len); action parseOCmds(char *s, int len); action parsePCmds(char *s, int len); action parseQCmds(char *s, int len); action parseRCmds(char *s, int len); action parseSCmds(char *s, int len); action parseVCmds(char *s, int len); action parseDefineArgs(char *s, int len); action parseCursorArgs(char *s, int len); action parseGPOArgs(char *s, int len); action parseVGraphArgs(char *s, int len); action parseHGraphArgs(char *s, int len); action parseGraphArgs(char *s, int len); action parseBigArgs(char *s, int len); action parseOptArgs(char *s, int len); action parseOutArgs(char *s, int len); action statusActionFactory(char *s, int len); action resetActionFactory(char *s, int len); action forwardActionFactory(char *s, int len); action backActionFactory(char *s, int len); action homeActionFactory(char *s, int len); action nstartActionFactory(char *s, int len); action nstopActionFactory(char *s, int len); action clearActionFactory(char *s, int len); action quitActionFactory(char *s, int len); action parseerrorActionFactory(char *s, int len); }; #endif // PROTOCOL_H