VR-Forces 4.0.4 Class Documentation
include/vrfplan/consoleMessageCommand.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2006 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: consoleMessageCommand.h,v $ $Revision: 1.2 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00013 
00014 #ifndef consoleMessageCommand_h
00015 #define consoleMessageCommand_h
00016 
00017 #include "vrfplan/simCommand.h"
00018 #include "vrfplan/vrfplanDefines.h"
00019 #include "vrfutil/rwString.h"
00020 #include "vrfutil/rwInt.h"
00021 #include <vlutil/vlPrint.h>
00022 
00027 class DT_DLL_vrfplan DtConsoleMessageCommand : public DtSimCommand
00028 {
00029 public:
00031    DtConsoleMessageCommand();
00032 
00034    DtConsoleMessageCommand(const DtString& writeName,
00035       DtReaderWriterRegistry* parentRegistry = NULL);
00036 
00038    DtConsoleMessageCommand(const DtString & writeName, const DtConsoleMessageCommand& orig,
00039       DtReaderWriterRegistry* parentRegistry = NULL);
00040 
00042    virtual ~DtConsoleMessageCommand();
00043 
00045    DtConsoleMessageCommand& operator=(const DtConsoleMessageCommand& orig);
00046 
00048    int type() const;
00049 
00051    virtual DtSimCommand * clone(const DtString & name, DtReaderWriterRegistry *
00052       parentRegistry = 0) const;
00053 
00055 
00056    virtual DtString messageText() const;
00057    virtual void setMessageText(const DtString& text);
00059 
00064 
00065    virtual DtNotifyLevelType notifyLevel() const;
00066    virtual void setNotifyLevel(DtNotifyLevelType level);
00068 
00070    virtual DtString stringRep() const;
00071 
00073    virtual int netRepSize() const;
00074 
00076    virtual bool setFromNet(const char* contentBuffer, 
00077       unsigned contentSize);
00078 
00080    virtual bool setToNet();
00081 
00083    static DtSimCommand* creator();
00084 
00085 protected:
00086    DtRwString myMessageText;
00087    DtRwInt myNotifyLevel;
00088 };
00089 
00090 #endif

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)