VR-Forces 4.0.4 Class Documentation
include/vrftasks/railMoveAlongTask.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2010 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: railMoveAlongTask.h,v $ $Revision: 1.11 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00017 
00018 
00019 #pragma once
00020 
00021 #include "vrftasks/simTask.h"
00022 #include "vrfutil/rwString.h"
00023 #include "vrfutil/rwRailSegment.h"
00024 #include <vlutil/vlNetTypes.h>
00025 #include "vrfutil/rwTemplatedList.h"
00026 
00027 
00052 #include "vrftasks/vrftasksDefines.h"
00053 class DT_DLL_vrftasks DtRailMoveAlongTask : public DtSimTask
00054 {
00055 
00056 public:
00057 
00059    DtRailMoveAlongTask();
00060 
00063    DtRailMoveAlongTask(const DtString & writeName, 
00064       DtReaderWriterRegistry * parentRegistry = 0);
00065 
00067    DtRailMoveAlongTask(const DtString & writeName, const DtRailMoveAlongTask & orig, 
00068       DtReaderWriterRegistry * parentRegistry = 0);
00069 
00071    const DtRailMoveAlongTask & operator=(const DtRailMoveAlongTask & orig);
00072 
00073    virtual ~DtRailMoveAlongTask();
00074 
00076    virtual int type() const;
00077 
00079    virtual DtSimTask * clone(const DtString & name, DtReaderWriterRegistry * 
00080       parentRegistry = 0) const;
00081 
00083    virtual DtString stringRep() const;
00084 
00086    virtual void setPath(const DtRwTemplatedListPtr<DtRwRailSegment> & segs);
00087    virtual DtRwTemplatedListPtr<DtRwRailSegment> & path();
00088    virtual const DtRwTemplatedListPtr<DtRwRailSegment>& path() const;
00089 
00091    virtual void addSegmentToPath(const DtRailSegment& seg);
00092    virtual void addSegmentToPath(const DtRwRailSegment* seg);
00093 
00096    virtual int netRepSize() const;
00097 
00099    virtual bool setFromNet(const char* contentBuffer, 
00100       unsigned contentSize);
00101 
00104    virtual bool setToNet();
00105 
00106 
00107    static DtSimTask * creator();
00108 
00109 protected:
00110 
00111    DtRwTemplatedListPtr<DtRwRailSegment> mySegments;
00112 };

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)