root/OpenSceneGraph/trunk/src/osgPlugins/dxf/codeValue.h @ 13041

Revision 13041, 1.3 kB (checked in by robert, 3 years ago)

Ran script to remove trailing spaces and tabs

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1/* dxfReader for OpenSceneGraph  Copyright (C) 2005 by GraphArchitecture ( grapharchitecture.com )
2 * Programmed by Paul de Repentigny <pdr@grapharchitecture.com>
3 *
4 * OpenSceneGraph is (C) 2004 Robert Osfield
5 *
6 * This library is provided as-is, without support of any kind.
7 *
8 * Read DXF docs or OSG docs for any related questions.
9 *
10 * You may contact the author if you have suggestions/corrections/enhancements.
11 */
12
13
14#ifndef DXF_CODE_VALUE
15#define DXF_CODE_VALUE 1
16
17#include <string>
18
19/// a group code / value pair handler
20/// to do: write accessors which check for the correct value
21/// being asked for (each group code has a value type
22/// associated with it).
23class codeValue {
24public:
25    codeValue() { reset(); }
26    void            reset()
27    {
28        _groupCode = -100;
29        _type = 0;
30        _bool = false;
31        _short = 0;
32        _int = 0;
33        _long = 0;
34        _double = 0;
35        _string = "";
36    }
37    int                _groupCode;
38    int                _type;
39    std::string        _unknown;
40    std::string        _string;
41    bool            _bool;
42    short            _short;
43    int                _int;
44    long            _long;
45    double            _double;
46};
47
48typedef std::vector<codeValue> VariableList; // this may be too big, find another way
49
50#endif
Note: See TracBrowser for help on using the browser.