VR-Link API Documentation for DIS
floatDatatypeRep.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *******************************************************************************/
7 #pragma once
8 
9 #include "numberDatatypeRep.h"
10 
11 #include <vlutil/vlString.h>
12 
13 class DtNetFloat32;
14 
19 {
20 public:
22 
24  DtFloatDatatypeRep(bool useImplicitPadding);
25 
27  virtual ~DtFloatDatatypeRep();
28 
31 
34 
36  virtual const char* datatype() const;
37 
39  virtual float floatVal(const void*) const;
40 
42  virtual DtString stringRep(const void* ptr, int* size = 0) const;
43 
45  virtual double numberRep(const void* ptr, int* size = 0) const;
46 
48  virtual std::vector<char> valueFromStringRep(const DtString& stringRep) const;
49 
50 protected:
51 
53  const DtNetFloat32* netValPtr(const void* ptr, int* size=0) const;
54 
55 };
56 
57 

Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)