Changeset 13041 for OpenSceneGraph/trunk/include/osgDB/ReaderWriter
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/include/osgDB/ReaderWriter (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osgDB/ReaderWriter
r11763 r13041 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 2 2 * 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 5 5 * (at your option) any later version. The full license is in LICENSE file 6 6 * included with this distribution, and on the openscenegraph.org website. 7 * 7 * 8 8 * This library is distributed in the hope that it will be useful, 9 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 11 * OpenSceneGraph Public License for more details. 12 12 */ … … 39 39 { 40 40 public: 41 42 41 42 43 43 ReaderWriter(): 44 44 osg::Object(true) {} 45 45 46 46 ReaderWriter(const ReaderWriter& rw,const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY): 47 47 osg::Object(rw,copyop) {} … … 71 71 FEATURE_NONE = 0, 72 72 FEATURE_READ_OBJECT = 1<<0, 73 FEATURE_READ_IMAGE = 1<<1, 73 FEATURE_READ_IMAGE = 1<<1, 74 74 FEATURE_READ_HEIGHT_FIELD = 1<<2, 75 FEATURE_READ_NODE = 1<<3, 76 FEATURE_READ_SHADER = 1<<4, 75 FEATURE_READ_NODE = 1<<3, 76 FEATURE_READ_SHADER = 1<<4, 77 77 FEATURE_WRITE_OBJECT = 1<<5, 78 78 FEATURE_WRITE_IMAGE = 1<<6, … … 89 89 FEATURE_WRITE_HEIGHT_FIELD | 90 90 FEATURE_WRITE_NODE | 91 FEATURE_WRITE_SHADER 92 }; 91 FEATURE_WRITE_SHADER 92 }; 93 93 /** Return available features*/ 94 94 virtual Features supportedFeatures() const; … … 118 118 ReadResult(const std::string& m):_status(ERROR_IN_READING_FILE),_message(m) {} 119 119 ReadResult(osg::Object* obj, ReadStatus status=FILE_LOADED):_status(status),_object(obj) {} 120 120 121 121 ReadResult(const ReadResult& rr):_status(rr._status),_message(rr._message),_object(rr._object) {} 122 122 ReadResult& operator = (const ReadResult& rr) { if (this==&rr) return *this; _status=rr._status; _message=rr._message;_object=rr._object; return *this; } 123 123 124 124 osg::Object* getObject(); 125 125 osg::Image* getImage(); … … 155 155 156 156 protected: 157 157 158 158 ReadStatus _status; 159 159 std::string _message; … … 176 176 WriteResult(WriteStatus status=FILE_NOT_HANDLED):_status(status) {} 177 177 WriteResult(const std::string& m):_status(ERROR_IN_WRITING_FILE),_message(m) {} 178 178 179 179 WriteResult(const WriteResult& rr):_status(rr._status),_message(rr._message) {} 180 180 WriteResult& operator = (const WriteResult& rr) { if (this==&rr) return *this; _status=rr._status; _message=rr._message; return *this; } 181 181 182 182 std::string& message() { return _message; } 183 183 const std::string& message() const { return _message; } … … 189 189 190 190 protected: 191 191 192 192 WriteStatus _status; 193 193 std::string _message;
