MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
aHandValList.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2014 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 #pragma once
6 
7 #include "aHandValBase.h"
8 
9 #if defined( DtIFSPEC1516 ) || defined ( DtIFSPEC1516E )
10 
11 struct DtAhvpStruct
12 {
13  DtHandle handle;
14  const char * buff;
15  MAKRti::DtU32 length;
16 
17 };
18 
19 // This is a less powerful version of DtAhvps that contains limited use but is much faster
20 // than it's parent because it does not do any copies or variableData conversions.
21 // When using it, be careful with memory leaks
22 class DT_DLL_LRC DtAhvpList : public DtAhvpBase
23 {
24 public:
26  DtAhvpList(unsigned size);
27 
29  ~DtAhvpList();
30 
33  virtual void addPointer(DtHandle handle, const char *value, MAKRti::DtU32& valueLength);
34 
35  virtual MAKRti::DtU32 size() const;
36  virtual DtHandle getHandle(MAKRti::DtU32 i) const;
37  virtual MAKRti::DtU32 getValueLength(MAKRti::DtU32 i) const;
38  virtual void getValue(MAKRti::DtU32 i, char *buff, MAKRti::DtU32& valueLength) const;
39  virtual char *getValuePointer(MAKRti::DtU32 i, MAKRti::DtU32& valueLength) const;
40 
41 protected:
42  DtAhvpStruct* myAhvpValues;
43  unsigned myCurrentSize;
44  unsigned myMaxSize;
45 };
46 
47 #else
48 #define DtAhvpList DtAhvps
49 
50 #endif
51 
52 

Document ID: Generated on Mon Jul 9 10:30:41 EDT 2018 from SVN revision 190224
Copyright © 2005-2018 VT MÄK Inc. All Rights Reserved (www.mak.com)