VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rwEmbarkationSlot.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2016 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 
10 #pragma once
11 
13 #include "vrfutil/vrfutilDefines.h"
14 #include <readerWriter/rwInt.h>
15 #include <readerWriter/rwBoolean.h>
16 
19 {
20 public:
21 
22  //Default constructor
24 
25  //Real constructors
26  DtRwEmbarkationSlot(const DtString& name,
27  DtReaderWriterRegistry* parentRegistry = NULL);
29  DtReaderWriterRegistry* parentRegistry = NULL);
30 
31  //Copy constructor
34 
37  virtual void setEmbarkInSlot(int);
38  virtual int embarkInSlot() const;
39 
40  virtual void setChooseAnyAvailableSlotIfTaken(bool);
41  virtual bool chooseAnyAvailableSlotIfTaken() const;
42 
46  virtual const char* readerWriterType() const;
47 
49  static const char* theXmlType();
50 
51  virtual const char* xmlType() const
52  {
53  return theXmlType();
54  }
55 
56 protected:
59 };
60 
61 namespace DtBufferSerialize
62 {
64  DT_DLL_vrfutil char *encode(const DtRwEmbarkationSlot& val, char *buffer);
65  DT_DLL_vrfutil const char *decode(DtRwEmbarkationSlot &val, const char *buffer) ;
66 }
virtual const char * readerWriterType() const
Used to supply a string type that this reader writer type is.
DT_DLL_readerWriter int getSize(const DtString &val)
The number of bytes required to encode the value.
Definition: symbolString.h:20
Definition: readerWriter.h:85
Reader-Writer embarkation slot to embark on selected.
Definition: rwEmbarkationSlot.h:18
Definition: readerWriterRegistry.h:39
Description: Readable, Writable int.
Definition: rwInt.h:25
DT_DLL_readerWriter char * encode(const DtFilename &val, char *buffer)
Serializes the provided value val into buffer.
virtual const char * xmlType() const
Definition: rwEmbarkationSlot.h:51
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
DtRwInt myEmbarkInSlot
Definition: rwEmbarkationSlot.h:57
#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
const DtReaderWriter & operator=(const DtReaderWriter &orig)
assignment operator
DT_DLL_readerWriter const char * decode(DtString &val, const char *buffer)
Decodes a value from buffer and places the result in val of the type specified by val...
static const char * theXmlType()
The type that is used when archiving to an XML stream.
DtRwBoolean myChooseAnyAvailableIfSlotTaken
Definition: rwEmbarkationSlot.h:58

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)