⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tmsgfactstartprocess.h

📁 游戏《家园》源码
💻 H
字号:
#if !defined(TMsgFactStartProcess_H)
#define TMsgFactStartProcess_H

// TMsgFactStartProcess.h

// Message that is used to start a process via the Factory Server


#include "TMsgFactStartProcessBase.h"
#include "SET"


namespace WONMsg {

class TMsgFactStartProcess : public TMsgFactStartProcessBase {

public:
    // Default ctor
    TMsgFactStartProcess(void);

    // TMessage ctor
    explicit TMsgFactStartProcess(const TMessage& theMsgR);

    // Copy ctor
    TMsgFactStartProcess(const TMsgFactStartProcess& theMsgR);

    // Destructor
    virtual ~TMsgFactStartProcess(void);

    // Assignment
    TMsgFactStartProcess& operator=(const TMsgFactStartProcess& theMsgR);

    // Virtual Duplicate from TMessage
    virtual TRawMsg* Duplicate(void) const;

    // Pack and Unpack the message
    // Unpack will throw a BadMsgException is message is not of this type
    virtual void* Pack(void);
    virtual void  Unpack(void);

    // Member access
    const std::string& GetCmdLine(void) const;
    virtual void SetCmdLine(const std::string& theCmdLine);
protected:
    virtual void PackCommandLine();
    virtual void UnpackCommandLine();
    
    std::string mCmdLine;
};


// Inlines
inline TRawMsg* TMsgFactStartProcess::Duplicate(void) const
{ return new TMsgFactStartProcess(*this); }

inline const std::string& TMsgFactStartProcess::GetCmdLine(void) const
{ return mCmdLine; }
inline void TMsgFactStartProcess::SetCmdLine(const std::string& theCmdLine)
{ mCmdLine = theCmdLine; }

};  // Namespace WONMsg

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -