VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rwRailSegment.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2010 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
12 
15 
16 #pragma once
17 
18 #include "vrfutil/railSegment.h"
19 #include <vlutil/vlString.h>
21 #include <readerWriter/rwBoolean.h>
22 #include <readerWriter/rwInt.h>
23 
24 #include "vrfutil/vrfutilDefines.h"
25 #include "rwTemplatedList.h"
26 
28 {
29 
30 public:
31 
33  {
34  DtForward = 0,
35  DtReverse
36  };
37 
39  DtRwRailSegment(const DtString& name = "rail-segment",
40  DtReaderWriterRegistry* parentRegistry = NULL);
41 
42  DtRwRailSegment(const DtSymbolString& name,
43  DtReaderWriterRegistry* parentRegistry = NULL);
44 
46  DtRwRailSegment(const DtVector& start,const DtVector& end,
47  const DtString& name = "rail-segment",
48  DtReaderWriterRegistry* parentRegistry = NULL);
49 
50  DtRwRailSegment(const DtVector& start,const DtVector& end,
51  const DtSymbolString& name,
52  DtReaderWriterRegistry* parentRegistry = NULL);
53 
54  DtRwRailSegment(const DtRailSegment& fromRail,
55  const DtString& name,
56  DtReaderWriterRegistry* parentRegistry = NULL);
57 
58  DtRwRailSegment(const DtRailSegment& fromRail,
59  const DtSymbolString& name,
60  DtReaderWriterRegistry* parentRegistry = NULL);
61 
63  DtRwRailSegment(const DtRwRailSegment & orig,
64  DtReaderWriterRegistry* parentRegistry = NULL);
65 
68  DtRwRailSegment & operator=(const DtRailSegment & orig);
69 
70  virtual ~DtRwRailSegment();
71 
72  virtual void putSelf(std::string& fp, int indentLevel = 0,
73  bool writeUnspecified = false, const DtFilename& path =
74  DtFilename::nullFilename());
75 
76  virtual void getSelf(DtlObjPtr args,
78  const DtVariableBindingsList& variableBindings = nullVariableReference());
79 
83  virtual const char* readerWriterType() const;
84 
85 protected:
86 
87 };
88 
DtMovementDirection
Definition: rwRailSegment.h:32
virtual const char * readerWriterType() const
Used to supply a string type that this reader writer type is. This can be used in place of dynamic-ca...
This class allows one to collect and compare strings using an index number instead of having to do st...
Definition: symbolString.h:27
DtRailSegment are segments entities can follow when using the rail movement system.
Definition: railSegment.h:23
Definition: readerWriter.h:85
Definition: readerWriterRegistry.h:39
DtRwTemplatedListPtr< DtRwRailSegment, true > DtRwRailSegmentList
Definition: rwRailSegment.h:89
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
virtual void getSelf(DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &variableBindings=nullVariableReference())
Top level to read itself from an input stream. searchPath is passed down to all DtReaderWriter member...
virtual void putSelf(std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename())
Top level call to write itself to file. If write unspecified is true, will write entries that are uns...
static const DtVariableBindingsList & nullVariableReference()
#define DT_DLL_vrfutil
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfutilDefines.h:34
Definition: rwRailSegment.h:27
DtRailSegment & operator=(const DtRailSegment &orig)

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)