CMS 3D CMS Logo

Defines | Functions

/data/refman/pasoursint/CMSSW_6_1_2_SLHC4_patch1/src/FWCore/Utilities/src/tinyxml.cc File Reference

#include "FWCore/Utilities/interface/tinyxml.h"
#include <boost/lexical_cast.hpp>

Go to the source code of this file.

Defines

#define TIXML_USE_STL

Functions

FILE * TiXmlFOpen (const char *filename, const char *mode)

Define Documentation

#define TIXML_USE_STL

Definition at line 32 of file tinyxml.cc.


Function Documentation

FILE* TiXmlFOpen ( const char *  filename,
const char *  mode 
)

Definition at line 46 of file tinyxml.cc.

Referenced by TiXmlDocument::LoadFile(), and TiXmlDocument::SaveFile().

{
        #if defined(_MSC_VER) && (_MSC_VER >= 1400 )
                FILE* fp = 0;
                errno_t err = fopen_s( &fp, filename, mode );
                if ( !err && fp )
                        return fp;
                return 0;
        #else
                return fopen( filename, mode );
        #endif
}