VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vectorDataRecord.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1998 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: vectorDataRec.h,v $ $Revision: 1.15 $ $State: Exp $
7 *******************************************************************************/
8 #ifndef vectorDataRecord_H_
9 #define vectorDataRecord_H_
10 
11 // file vectorDataRec.h
12 // \brief Contains the DtVectorDataRecord class declaration.
13 
16 #include <iosfwd>
17 #include <vector>
19 
21 
22 //
23 // Instances of this class are accessors to dfad/dfd data
25 {
26 
27 public:
28 
29  // default constructor.
31 
32  // destructor
33  virtual ~DtVectorDataRecord();
34 
35  // copy constructor
37 
38  // assignment operator
40 
41  // Returns "vector".
42  virtual DtString recordTypeName() const;
43 
44  // Returns DtConfigVectorType
45  virtual DtConfigCategoryType recordCategory() const;
46 
47  // Returns VectorFileTypeUnknown
48  virtual const unsigned int vecDataType() const;
49 
50  // Returns the initializer.
51  virtual DtVectorDataInitializer* vectorDataInitializer();
52 
53  // Clears the vector files from the vector initializer list
54  virtual void resetFileLists();
55 
56  // Read self from stream.
57  virtual bool get(std::istream& stream);
58 
59  // identifies a token or passes it to the parent class.
60  virtual bool processToken(std::istream& stream, DtString& token);
61 
62  static DtMetafileRecord* create();
63 
64 protected:
65 
66  // Write self to stream.
67  virtual bool writeAttributes(std::ostream& stream) const;
68  virtual bool getAttribute(const DtString attrName, DtString& value, unsigned index=0);
69  virtual bool setToken(const DtString& token, const DtString value);
70 
71 protected:
72 
75  static const DtString theTolerance;
77 
79  unsigned int myVectorDataType;
80 
81 };
82 
83 #endif
84 

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)