OpenSceneGraph 3.6.5
fstream
Go to the documentation of this file.
1/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2008 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 OSGDB_FSTREAM
15#define OSGDB_FSTREAM 1
16
17#include <osgDB/Export>
18#include <osg/Export>
19
20#include <fstream>
21
22
23namespace osgDB
24{
25
31
32void OSGDB_EXPORT open(std::fstream& fs, const char* filename,std::ios_base::openmode mode);
33
34class ifstream : public std::ifstream
35{
36public:
38 OSGDB_EXPORT explicit ifstream(const char* filename,
39 std::ios_base::openmode mode = std::ios_base::in);
41
42 void OSGDB_EXPORT open(const char* filename,
43 std::ios_base::openmode mode = std::ios_base::in);
44};
45
46class ofstream : public std::ofstream
47{
48public:
50 OSGDB_EXPORT explicit ofstream(const char* filename,
51 std::ios_base::openmode mode = std::ios_base::out);
53
54 void OSGDB_EXPORT open(const char* filename,
55 std::ios_base::openmode mode = std::ios_base::out);
56};
57
58}
59
60#endif
The osgDB library provides support for reading and writing scene graphs, providing a plugin framework...
Definition Archive:24
void OSGDB_EXPORT open(std::fstream &fs, const char *filename, std::ios_base::openmode mode)
Convenience function for fstream open , std::ifstream, and std::ofstream to automatically handle UTF-...
OSGDB_EXPORT ~ifstream()
OSGDB_EXPORT ifstream()
OSGDB_EXPORT ifstream(const char *filename, std::ios_base::openmode mode=std::ios_base::in)
void OSGDB_EXPORT open(const char *filename, std::ios_base::openmode mode=std::ios_base::in)
OSGDB_EXPORT ofstream()
void OSGDB_EXPORT open(const char *filename, std::ios_base::openmode mode=std::ios_base::out)
OSGDB_EXPORT ofstream(const char *filename, std::ios_base::openmode mode=std::ios_base::out)
OSGDB_EXPORT ~ofstream()
#define OSGDB_EXPORT
Definition Export:39

osg logo
Generated at Sun Jul 20 2025 00:00:00 for the OpenSceneGraph by doxygen 1.14.0.