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). 23 class codeValue { 24 public: codeValue()25 codeValue() { reset(); } 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 48 typedef std::vector<codeValue> VariableList; // this may be too big, find another way 49 50 #endif 51