1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 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 5 * (at your option) any later version. The full license is in LICENSE file 6 * included with this distribution, and on the openscenegraph.org website. 7 * 8 * This library is distributed in the hope that it will be useful, 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * OpenSceneGraph Public License for more details. 12 */ 13 14 #ifndef P3D_READFILE 15 #define P3D_READFILE 1 16 17 #include <osg/ArgumentParser> 18 #include <osgDB/ReaderWriter> 19 20 namespace p3d { 21 22 typedef std::vector<std::string> FileNameList; 23 24 bool getFileNames(osg::ArgumentParser& arguments, FileNameList& xmlFiles, FileNameList& normalFiles); 25 26 bool readEnvVars(osg::ArgumentParser& arguments); 27 28 bool readEnvVars(const std::string& filename); 29 30 osg::ref_ptr<osg::Node> readHoldingSlide(const std::string& filename); 31 32 osg::ref_ptr<osg::Node> readPresentation(const std::string& filename,const osgDB::ReaderWriter::Options* options); 33 34 osg::ref_ptr<osg::Node> readShowFiles(osg::ArgumentParser& arguments,const osgDB::ReaderWriter::Options* options); 35 36 } 37 38 #endif 39