All pastes #233386 Raw Edit

Sans nom

public cpp v1 · immutable
·published 2006-11-01 22:33 UTC
rendered paste body
#ifndef _C_PARSER_#define _C_PARSER_#include <iostream>#include <string>using namespace std;class c_parser{  private:	/* buffering */	string		m_buffer;	string		m_line;	/* Line IRC's parsing */	string		m_nick;	string		m_ident;	string		m_hostname;	string		m_type;	string		m_where; //pv (nick) or channel	string		m_msg;	string		m_pong;  public:	c_parser();	~c_parser();	/* buffering */	void			setBuffer(char recvBuffer[2048]);	bool			getLine();	bool			parse();		/* Line IRC's parsing */	string		getnick();	string		getident();	string		gethostname();	string		gettype();	string		getwhere();	string		getmsg();	string		getpong();};#endif