VTFLib
A C and C++ API that, with a few simple functions, can open and save .vtf and .vmt files.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
VMTSingleNode.h
1 /*
2  * VTFLib
3  * Copyright (C) 2005-2010 Neil Jedrzejewski & Ryan Gregg
4 
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later
9  * version.
10  */
11 
12 #ifndef VTFLIB_VMTSINGLENODE_H
13 #define VTFLIB_VMTSINGLENODE_H
14 
15 #include "stdafx.h"
16 #include "VMTValueNode.h"
17 
18 namespace VTFLib
19 {
20  namespace Nodes
21  {
22  class VTFLIB_API CVMTSingleNode : public CVMTValueNode
23  {
24  private:
25  vlFloat fValue;
26 
27  public:
28  CVMTSingleNode(const vlChar *cName);
29  CVMTSingleNode(const vlChar *cName, const vlChar *cValue);
30  CVMTSingleNode(const vlChar *cName, vlFloat fValue);
31  CVMTSingleNode(const CVMTSingleNode &SingleNode);
32  virtual ~CVMTSingleNode();
33 
34  virtual vlVoid SetValue(const vlChar *cValue);
35 
36  vlVoid SetValue(vlFloat fValue);
37  vlFloat GetValue() const;
38 
39  virtual VMTNodeType GetType() const;
40  virtual CVMTNode *Clone() const;
41  };
42  }
43 }
44 
45 #endif
vlSingle vlFloat
Floating point number (same as vlSingled).
Definition: stdafx.h:63
char vlChar
Single signed character.
Definition: stdafx.h:51
Application framework header plus VTFLib custom data types.
void vlVoid
Void value.
Definition: stdafx.h:61