CMS 3D CMS Logo

Defines | Functions

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

#include "FWCore/Utilities/interface/tinyxml.h"

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 27 of file tinyxml.cc.


Function Documentation

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

Definition at line 40 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
}