VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rwChatChannelConfig.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2024 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include "vrfutil/vrfutilDefines.h"
12 
14 #include <readerWriter/rwBoolean.h>
15 #include <readerWriter/rwInt.h>
16 #include <readerWriter/rwString.h>
17 
18 #include <vrfutil/rwStringList.h>
20 #include <vrfutil/rwColor.h>
21 
23 {
24 public:
27  DtRwChatChannel(const DtString& name, DtReaderWriterRegistry* parentRegistry = NULL);
28  DtRwChatChannel(const DtSymbolString& name, DtReaderWriterRegistry* parentRegistry = NULL);
29 
31  DtRwChatChannel(const DtRwChatChannel& orig);
32 
35 
36  DtRwString channelName() const { return myChannelName; }
37  void setChannelName(DtRwString val) { myChannelName = val; }
38 
39  DtRwInt channelForce() const { return myChannelForce; }
40  void setChannelForce(DtRwInt val) { myChannelForce = val; }
41 
42  const DtRwStringList& entities() const { return myEntities; }
43  void setEntities(DtRwStringList val) { myEntities = val; }
44 
45  DtRwColor setChannelColor() const { return myChannelColor; }
46  void channelColor(DtRwColor val) { myChannelColor = val; }
47 
48 protected:
53 };
54 
56 {
57 public:
60 
63 
66 
68  const DtRwTemplatedListPtr<DtRwChatChannel, true>& channels() const { return myChannels; }
69 
70  virtual DtRwChatChannel* getChannelByName(const DtString& channelName) const;
71 
72 protected:
74 };
75 
76 bool DT_DLL_vrfutil ReadFromFile(const DtFilename& filePath, DtRwChatChannelConfig* input,
78 bool DT_DLL_vrfutil WriteToFile(const DtFilename& filePath, DtRwChatChannelConfig* input);
This class allows one to collect and compare strings using an index number instead of having to do st...
Definition: symbolString.h:27
void setChannelName(DtRwString val)
Definition: rwChatChannelConfig.h:37
bool DT_DLL_vrfutil WriteToFile(const DtFilename &filePath, DtRwChatChannelConfig *input)
bool DT_DLL_vrfutil ReadFromFile(const DtFilename &filePath, DtRwChatChannelConfig *input, const DtVariableBindingsList &variableBindings=DtReaderWriter::nullVariableReference())
DtRwTemplatedListPtr< DtRwChatChannel, true > & channels()
Definition: rwChatChannelConfig.h:67
Definition: rwChatChannelConfig.h:55
void setEntities(DtRwStringList val)
Definition: rwChatChannelConfig.h:43
DtRwStringList myEntities
Definition: rwChatChannelConfig.h:52
Definition: readerWriter.h:85
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
DtRwColor myChannelColor
Definition: rwChatChannelConfig.h:49
Definition: readerWriterRegistry.h:39
Definition: rwChatChannelConfig.h:22
DtRwTemplatedListPtr< DtRwChatChannel, true > myChannels
Definition: rwChatChannelConfig.h:73
DtRwColor setChannelColor() const
Definition: rwChatChannelConfig.h:45
Reader-Writer color specified by red, green, blue components.
Definition: rwColor.h:19
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
Description: Readable, Writable int.
Definition: rwInt.h:25
void channelColor(DtRwColor val)
Definition: rwChatChannelConfig.h:46
const DtRwStringList & entities() const
Definition: rwChatChannelConfig.h:42
static const DtVariableBindingsList & nullVariableReference()
void setChannelForce(DtRwInt val)
Definition: rwChatChannelConfig.h:40
#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
DtRwInt myChannelForce
Definition: rwChatChannelConfig.h:51
const DtReaderWriter & operator=(const DtReaderWriter &orig)
assignment operator
Definition: rwStringList.h:20
DtRwString channelName() const
Definition: rwChatChannelConfig.h:36
const DtRwTemplatedListPtr< DtRwChatChannel, true > & channels() const
Definition: rwChatChannelConfig.h:68
DtRwString myChannelName
Definition: rwChatChannelConfig.h:50
DtRwInt channelForce() const
Definition: rwChatChannelConfig.h:39

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)