VR-Forces 4.0.4 Class Documentation
include/vrftasks/taskCompltRpt.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 1999 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: taskCompltRpt.h,v $ $Revision: 1.15 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00017 
00018 
00019 #ifndef DtTaskCompleteReport_H_
00020 #define DtTaskCompleteReport_H_
00021 
00022 
00023 #include <vlutil/vlNetTypes.h>
00024 
00025 #include "vrftasks/simReport.h"
00026 #include "vrfutil/rwInt.h"
00027 #include "vrfutil/rwBoolean.h"
00028 #include "vrftasks/vrftasksDefines.h"
00029 
00033 struct DtNetTaskCompleteReport
00034 {
00035    DtNetInt32 myTaskCompleted;
00036    DtNetInt32 myTaskId;
00037    DtNetU8    mySuccess;
00038 };
00039 
00061 class DT_DLL_vrftasks DtTaskCompleteReport : public DtSimReport
00062 {
00063 
00064 public:
00065 
00067    DtTaskCompleteReport();
00068 
00071    DtTaskCompleteReport(const DtString & writeName, DtReaderWriterRegistry * 
00072       parentRegistry = 0);
00073 
00075    DtTaskCompleteReport(const DtString& writeName, const DtTaskCompleteReport& 
00076       orig, DtReaderWriterRegistry * parentRegistry = 0);
00077 
00079    const DtTaskCompleteReport & operator=(const DtTaskCompleteReport & orig);
00080 
00081    virtual ~DtTaskCompleteReport();
00082 
00083    virtual int type() const;
00084 
00087    virtual int taskCompleted() const;
00088    virtual void setTaskCompleted(int taskCompleted);
00089 
00092 
00093    virtual void setTaskId(int id);
00094    virtual int taskId() const;
00096 
00098 
00099    virtual void setSubtaskId(int id);
00100    virtual int subtaskId() const;
00102 
00107 
00108    virtual void setSuccess(bool b);
00109    virtual bool success() const;
00111 
00113    virtual DtSimReport * clone(const DtString & name, DtReaderWriterRegistry * 
00114       parentRegistry = 0) const;
00115 
00116    virtual int netRepSize() const;
00117 
00118    virtual bool setFromNet(const char* contentBuffer, 
00119       unsigned contentSize);
00120  
00121    virtual bool setToNet();
00122 
00123    virtual DtString stringRep() const;
00124 
00125    static DtSimReport* creator();
00126 
00127 
00128 protected:
00129    DtRwInt myTaskCompleted;
00130    DtRwInt myTaskId;
00131    DtRwBoolean mySuccess;
00132 };
00133 
00134 
00135 #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)