00001 #ifndef _POBOXLISTMSG_H_
00002 #define _POBOXLISTMSG_H_
00003 #include<POMessage.h>
00004 #include<vector>
00005
00006 class PEXPR_API POBoxListMsg : public POMessage
00007 {
00008 public:
00009 enum BOXCMD { NEWBOXES, CLOSEBOXES };
00010 POBoxListMsg( int cmd = NEWBOXES );
00011 POBoxListMsg( const POBoxListMsg& cpy );
00012 virtual ~POBoxListMsg(){}
00013
00014 string messageType()const { return "POBoxListMsg"; }
00015
00016 void addBox( const string& box );
00017
00018 vector<string> getBoxes()const { return m_boxes; }
00019 int getCommand()const { return m_cmd.val(); }
00020
00021 POMessage* clone()const;
00022
00023 int packsize()const;
00024 int pack( char* buffer )const;
00025 int unpack( char* buffer );
00026
00027 private:
00028 POInt m_cmd;
00029 vector<string> m_boxes;
00030 };
00031
00032 #endif