VR-Forces Developer's Guide
 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 override;
47 
49  static const char* theXmlType();
50 
51  virtual const char* xmlType() const override
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. This can be used in place of dynamic-ca...
DT_DLL_readerWriter int getSize(const DtString &val)
The number of bytes required to encode the value.
This class allows one to collect and compare strings using an index number instead of having to do st...
Definition: symbolString.h:27
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. buffer must have at least the number of bytes returned...
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
DtRwInt myEmbarkInSlot
Definition: rwEmbarkationSlot.h:57
virtual const char * xmlType() const override
Definition: rwEmbarkationSlot.h:51
#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 Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)