VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rwBinaryData.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2021 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include "vrfutil/vrfutilDefines.h"
12 
13 #include <readerWriter/rwString.h>
14 #include <readerWriter/rwInt.h>
15 
17 
19 {
20 
21 public:
22 
25 
27  DtRwBinaryData(const DtString& name,
28  DtReaderWriterRegistry* parentRegistry);
29  DtRwBinaryData(const DtSymbolString& name,
30  DtReaderWriterRegistry* parentRegistry);
31 
33  DtRwBinaryData(const DtRwBinaryData& orig, DtReaderWriterRegistry* parentRegistry = 0);
34 
36  virtual bool operator==(const DtRwBinaryData& orig);
37  virtual bool operator!=(const DtRwBinaryData& orig);
38 
39 
40  ~DtRwBinaryData();
41 
42 
43 
45  virtual void setBinaryData(unsigned char* source, unsigned int size);
46 
48  virtual std::vector<unsigned char>& binaryData();
49 
50  virtual void prePutSelf();
51  virtual void postGetSelf();
52 
54  virtual int getSize();
55 
56 protected:
59  virtual void convertDataToString();
60  virtual void convertStringToData();
61 
62  int hexToBin(char c);
63 
65  std::vector<unsigned char> myData;
66 
69 
72 };
bool operator==(const DtReaderWriter &) const
Equivalence operator.
virtual void prePutSelf()
Called before either version of put self (file or environment). Default is no-op. ...
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
virtual void postGetSelf()
Called after either version of getSelf (mtl or environment). Default is no-op.
voidpf void uLong size
Definition: ioapi.h:39
Definition: readerWriter.h:85
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
Definition: readerWriterRegistry.h:39
This is a rw class to save out a block of generic binary data.
Definition: rwBinaryData.h:18
DtRwInt mySize
The number of bytes in the data.
Definition: rwBinaryData.h:71
bool operator!=(const DtReaderWriter &rhs) const
Definition: readerWriter.h:121
Description: Readable, Writable int.
Definition: rwInt.h:25
const char * source
Definition: lz4.h:442
#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
DtRwString myString
the raw data converted to hex to be streamed via mtl
Definition: rwBinaryData.h:68
std::vector< unsigned char > myData
the raw data
Definition: rwBinaryData.h:65

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)