Where possible moved redundent C header includes from headers to source files

This commit is contained in:
Robert Osfield
2008-12-12 18:47:30 +00:00
parent 97cd954c01
commit 315aeeb557
49 changed files with 69299 additions and 30082 deletions

View File

@@ -26,8 +26,6 @@
#include <osg/DeleteHandler>
#ifndef OSG_JAVA_BUILD
namespace osg
{
@@ -368,5 +366,3 @@ void Referenced::deleteUsingDeleteHandler() const
}
} // end of namespace osg
#endif //OSG_JAVA_BUILD

View File

@@ -14,6 +14,8 @@
#include <osgDB/ConvertUTF>
#include <osg/Notify>
#include <string.h>
#if defined(WIN32) && !defined(__CYGWIN__)
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
@@ -22,6 +24,12 @@
namespace osgDB
{
std::string convertUTF16toUTF8(const std::wstring& s){return convertUTF16toUTF8(s.c_str(), s.length());}
std::string convertUTF16toUTF8(const wchar_t* s){return convertUTF16toUTF8(s, wcslen(s));}
std::wstring convertUTF8toUTF16(const std::string& s){return convertUTF8toUTF16(s.c_str(), s.length());}
std::wstring convertUTF8toUTF16(const char* s){return convertUTF8toUTF16(s, strlen(s));}
std::string convertUTF16toUTF8(const wchar_t* source, unsigned sourceLength)
{
#if defined(WIN32) && !defined(__CYGWIN__)

View File

@@ -30,6 +30,8 @@
#include <functional>
#include <set>
#include <string.h>
#ifdef WIN32
#include <windows.h>
#else

View File

@@ -10,13 +10,15 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* OpenSceneGraph Public License for more details.
*/
#include <string.h>
#include <osg/Notify>
#include <osg/Math>
#include <osgDB/Field>
#include <string.h>
#include <stdlib.h>
using namespace osgDB;
using namespace std;

View File

@@ -74,6 +74,8 @@
#include <osgDB/Registry>
#include <errno.h>
#include <string.h>
#include <stack>
namespace osgDB

View File

@@ -18,6 +18,7 @@
#include <sstream>
#include <stdio.h>
#include <string.h>
using namespace std;
using namespace osgDB;

View File

@@ -9,6 +9,7 @@
#include <iostream>
#include <stdio.h>
#include <string.h>
using namespace osg;

View File

@@ -16,6 +16,8 @@
#include <assert.h>
#include <fstream>
#include <string.h>
#include "Q3BSPReader.h"
#include "Q3BSPLoad.h"

View File

@@ -14,7 +14,9 @@
#include <osgDB/FileUtils>
#include <osgDB/ReadFile>
#include <osg/io_utils>
#include <iostream>
#include <string.h>
#include "VBSPReader.h"
#include "VBSPGeometry.h"

View File

@@ -27,6 +27,7 @@
#include <iomanip>
#include <stdio.h>
#include <string.h>
// NOTICE ON WIN32:

View File

@@ -16,6 +16,8 @@ AUTHOR: Geoff Michel
#ifndef _GEO_STRUCTS_H_
#define _GEO_STRUCTS_H_ 1
#include <string.h>
typedef std::vector< geoExtensionDefRec > geoExtensionDefList;
class geoField { // holds one field of data as read from the disk of a GEO file

View File

@@ -37,6 +37,8 @@
#include <osgUtil/SmoothingVisitor>
#include <osgUtil/Tessellator>
#include <string.h>
#include "Converter.h"
#include "VertexMap.h"

View File

@@ -37,6 +37,7 @@
#include <iostream>
#include <fstream>
#include <string.h>
#include "old_Lwo2.h"
#include "old_Lwo2Layer.h"

View File

@@ -24,6 +24,8 @@
#include <osgDB/FileUtils>
#include <osgDB/FileNameUtils>
#include <string.h>
using namespace obj;
static std::string strip( const std::string& ss )

View File

@@ -4,6 +4,8 @@
#include "osgDB/Input"
#include "osgDB/Output"
#include <string.h>
using namespace osg;
using namespace osgDB;

View File

@@ -4,6 +4,8 @@
#include "osgDB/Input"
#include "osgDB/Output"
#include <string.h>
using namespace osg;
using namespace osgDB;

View File

@@ -4,6 +4,8 @@
#include "osgDB/Input"
#include "osgDB/Output"
#include <string.h>
using namespace osg;
using namespace osgDB;

View File

@@ -8,6 +8,8 @@
#include "Matrix.h"
#include <string.h>
using namespace osg;
using namespace osgDB;

View File

@@ -4,6 +4,8 @@
#include "osgDB/Input"
#include "osgDB/Output"
#include <string.h>
using namespace osg;
using namespace osgDB;

View File

@@ -4,6 +4,10 @@
#include "osgDB/Input"
#include "osgDB/Output"
#include <string.h>
#include <string.h>
using namespace osg;
using namespace osgDB;

View File

@@ -9,6 +9,8 @@
#include "osgDB/Input"
#include "osgDB/Output"
#include <string.h>
using namespace osg;
using namespace osgDB;

View File

@@ -6,6 +6,8 @@
#include <osgDB/Input>
#include <osgDB/ParameterOutput>
#include <string.h>
using namespace osg;
using namespace osgDB;

View File

@@ -4,6 +4,8 @@
#include "osgDB/Input"
#include "osgDB/Output"
#include <string.h>
using namespace osg;
using namespace osgDB;

View File

@@ -8,6 +8,7 @@
#include <osgDB/Output>
#include <set>
#include <string.h>
using namespace osg;
using namespace osgDB;

View File

@@ -4,6 +4,8 @@
#include "osgDB/Input"
#include "osgDB/Output"
#include <string.h>
using namespace osg;
using namespace osgDB;
using namespace std;

View File

@@ -5,6 +5,8 @@
#include "osgDB/Input"
#include "osgDB/Output"
#include <string.h>
using namespace osg;
using namespace osgDB;

View File

@@ -5,6 +5,8 @@
#include "osgDB/Input"
#include "osgDB/Output"
#include <string.h>
using namespace osg;
using namespace osgDB;

View File

@@ -9,6 +9,8 @@
#include "osgDB/Input"
#include "osgDB/Output"
#include <string.h>
using namespace osg;
using namespace osgDB;

View File

@@ -6,6 +6,8 @@
#include <osgDB/Input>
#include <osgDB/Output>
#include <string.h>
using namespace osg;
using namespace osgDB;

View File

@@ -13,6 +13,8 @@
#include <osgDB/Output>
#include <osgDB/ParameterOutput>
#include <string.h>
bool Layer_readLocalData(osg::Object &obj, osgDB::Input &fr);
bool Layer_writeLocalData(const osg::Object &obj, osgDB::Output &fw);
bool Layer_matchFilterStr(const char* str, osg::Texture::FilterMode& filter);

View File

@@ -11,6 +11,7 @@
#include <osgDB/fstream>
#include <stdio.h>
#include <string.h>
using namespace osg;
template <class T>

View File

@@ -40,6 +40,8 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
/**
* STL importer for OpenSceneGraph.
*/

View File

@@ -7,8 +7,10 @@
#include <osgDB/Registry>
#include <osgDB/FileUtils>
#include <osg/io_utils>
#include <iostream>
#include <sstream>
#include <string.h>
#include "ReaderWriterTXP.h"
#include "TXPNode.h"

View File

@@ -23,6 +23,7 @@
#include<deque>
#include<algorithm>
#include <string.h>
using namespace osgShadow;

View File

@@ -13,6 +13,7 @@
#include <memory.h>
#include <stdlib.h>
#include <string.h>
#include <osgSim/ShapeAttribute>
@@ -68,6 +69,13 @@ void ShapeAttribute::free()
}
}
void ShapeAttribute::setValue(const char * value)
{
free();
_type = STRING;
_string = (value ? strdup(value) : 0);
}
void ShapeAttribute::copy(const ShapeAttribute& sa)
{
_name = sa._name;

View File

@@ -23,6 +23,8 @@
#include <osgDB/FileNameUtils>
#include <osg/GLU>
#include <string.h>
#include <OpenThreads/ReentrantMutex>
using namespace osgText;

View File

@@ -18,6 +18,8 @@
#include <osgViewer/Viewer>
#include <osgViewer/ViewerEventHandlers>
#include <string.h>
namespace osgViewer
{

View File

@@ -25,8 +25,8 @@
#include <osgViewer/Renderer>
#include <osgViewer/CompositeViewer>
#include <sstream>
#include <string.h>
using namespace osgViewer;