Made the osgDB::ParamterOutput class so that it is purely defined in terms
of the header, and therefore not requiring to be exported. Updated the MUSE_READ_ME.txt to include mention of syntax highlighting.
This commit is contained in:
parent
5ad9602673
commit
e0074d7c44
@ -16,3 +16,15 @@ documentation.
|
||||
Several of the plugins and demoes, and two of the core libraries - osgText
|
||||
and osgGLUT require external dependancies. Full details on where to obtain
|
||||
these can be found in doc/dependancies.html.
|
||||
|
||||
|
||||
--
|
||||
|
||||
For syntax highlighting in VisualStudio which the stanard C++ style found in the
|
||||
OSG you can substiture the LANDEXT.DAT file found in this directory with the one found
|
||||
in :
|
||||
|
||||
VisualStudio6.0 *\Common\MSDev98\Bin
|
||||
|
||||
VisualStudio7.0/.NET *\Common7\IDE\langext.dat
|
||||
|
||||
|
@ -129,10 +129,6 @@ SOURCE=..\..\Src\osgDB\Output.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\Src\osgDB\ParameterOutput.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\Src\osgDB\ReadFile.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
@ -9,17 +9,39 @@
|
||||
|
||||
namespace osgDB {
|
||||
|
||||
class OSGDB_EXPORT ParameterOutput
|
||||
class ParameterOutput
|
||||
{
|
||||
public:
|
||||
|
||||
ParameterOutput(Output& fw);
|
||||
ParameterOutput(Output& fw):
|
||||
_fw(fw),
|
||||
_numItemsPerLine(fw.getNumIndicesPerLine()),
|
||||
_column(0) {}
|
||||
|
||||
ParameterOutput(Output& fw,int numItemsPerLine);
|
||||
ParameterOutput(Output& fw,int numItemsPerLine):
|
||||
_fw(fw),
|
||||
_numItemsPerLine(numItemsPerLine),
|
||||
_column(0) {}
|
||||
|
||||
void begin();
|
||||
void newLine();
|
||||
void end();
|
||||
void begin()
|
||||
{
|
||||
_fw.indent() << "{"<<std::endl;
|
||||
_fw.moveIn();
|
||||
}
|
||||
|
||||
void newLine()
|
||||
{
|
||||
if (_column!=0) _fw << std::endl;
|
||||
_column = 0;
|
||||
}
|
||||
|
||||
void end()
|
||||
{
|
||||
if (_column!=0) _fw << std::endl;
|
||||
_fw.moveOut();
|
||||
_fw.indent() << "}"<<std::endl;
|
||||
_column = 0;
|
||||
}
|
||||
|
||||
template<class T>
|
||||
void write(const T& t)
|
||||
|
@ -11,7 +11,6 @@ CXXFILES =\
|
||||
WriteFile.cpp\
|
||||
Input.cpp\
|
||||
Output.cpp\
|
||||
ParameterOutput.cpp\
|
||||
Field.cpp\
|
||||
FieldReader.cpp\
|
||||
FieldReaderIterator.cpp\
|
||||
|
@ -1,33 +0,0 @@
|
||||
#include <osgDB/ParameterOutput>
|
||||
|
||||
using namespace osgDB;
|
||||
|
||||
ParameterOutput::ParameterOutput(Output& fw):
|
||||
_fw(fw),
|
||||
_numItemsPerLine(fw.getNumIndicesPerLine()),
|
||||
_column(0) {}
|
||||
|
||||
ParameterOutput::ParameterOutput(Output& fw,int numItemsPerLine):
|
||||
_fw(fw),
|
||||
_numItemsPerLine(numItemsPerLine),
|
||||
_column(0) {}
|
||||
|
||||
void ParameterOutput::begin()
|
||||
{
|
||||
_fw.indent() << "{"<<std::endl;
|
||||
_fw.moveIn();
|
||||
}
|
||||
|
||||
void ParameterOutput::newLine()
|
||||
{
|
||||
if (_column!=0) _fw << std::endl;
|
||||
_column = 0;
|
||||
}
|
||||
|
||||
void ParameterOutput::end()
|
||||
{
|
||||
if (_column!=0) _fw << std::endl;
|
||||
_fw.moveOut();
|
||||
_fw.indent() << "}"<<std::endl;
|
||||
_column = 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user