LibreOffice Module codemaker (master) 1
Macros | Functions
global.cxx File Reference
#include <osl/process.h>
#include <rtl/strbuf.hxx>
#include <rtl/ustring.hxx>
#include <osl/thread.h>
#include <osl/file.hxx>
#include <o3tl/string_view.hxx>
#include <string.h>
#include <string_view>
#include <errno.h>
#include <sys/stat.h>
#include <unistd.h>
#include <codemaker/global.hxx>
Include dependency graph for global.cxx:

Go to the source code of this file.

Macros

#define SEPARATOR   '\\'
 

Functions

OString getTempDir (const OString &sFileName)
 
OString createFileNameFromType (const OString &destination, const OString &typeName, const OString &postfix)
 
bool fileExists (const OString &fileName)
 
static bool checkFileContent (const OString &targetFileName, const OString &tmpFileName)
 
bool makeValidTypeFile (const OString &targetFileName, const OString &tmpFileName, bool bFileCheck)
 
bool removeTypeFile (const OString &fileName)
 
OUString convertToFileUrl (const OString &fileName)
 
FileStreamoperator<< (FileStream &o, sal_uInt32 i)
 
FileStreamoperator<< (FileStream &o, char const *s)
 
FileStreamoperator<< (FileStream &o, OString const *s)
 
FileStreamoperator<< (FileStream &o, const OString &s)
 
FileStreamoperator<< (FileStream &o, OStringBuffer const *s)
 
FileStreamoperator<< (FileStream &o, const OStringBuffer &s)
 
FileStreamoperator<< (FileStream &out, std::u16string_view s)
 

Macro Definition Documentation

◆ SEPARATOR

#define SEPARATOR   '\\'

Definition at line 46 of file global.cxx.

Function Documentation

◆ checkFileContent()

static bool checkFileContent ( const OString &  targetFileName,
const OString &  tmpFileName 
)
static

Definition at line 160 of file global.cxx.

References FILE, n1, and n2.

Referenced by makeValidTypeFile().

◆ convertToFileUrl()

OUString convertToFileUrl ( const OString &  fileName)

Definition at line 221 of file global.cxx.

References SEPARATOR.

Referenced by createFileNameFromType(), and SAL_IMPLEMENT_MAIN_WITH_ARGS().

◆ createFileNameFromType()

OString createFileNameFromType ( const OString &  destination,
const OString &  typeName,
const OString &  postfix 
)

◆ fileExists()

bool fileExists ( const OString &  fileName)

Definition at line 147 of file global.cxx.

References FILE.

Referenced by makeValidTypeFile().

◆ getTempDir()

OString getTempDir ( const OString &  sFileName)

Definition at line 52 of file global.cxx.

References index.

◆ makeValidTypeFile()

bool makeValidTypeFile ( const OString &  targetFileName,
const OString &  tmpFileName,
bool  bFileCheck 
)

Definition at line 192 of file global.cxx.

References checkFileContent(), fileExists(), and removeTypeFile().

◆ operator<<() [1/7]

FileStream & operator<< ( FileStream o,
char const *  s 
)

Definition at line 332 of file global.cxx.

◆ operator<<() [2/7]

FileStream & operator<< ( FileStream o,
const OString &  s 
)

Definition at line 342 of file global.cxx.

◆ operator<<() [3/7]

FileStream & operator<< ( FileStream o,
const OStringBuffer &  s 
)

Definition at line 353 of file global.cxx.

◆ operator<<() [4/7]

FileStream & operator<< ( FileStream o,
OString const *  s 
)

Definition at line 337 of file global.cxx.

◆ operator<<() [5/7]

FileStream & operator<< ( FileStream o,
OStringBuffer const *  s 
)

Definition at line 348 of file global.cxx.

◆ operator<<() [6/7]

FileStream & operator<< ( FileStream o,
sal_uInt32  i 
)

Definition at line 326 of file global.cxx.

References i.

◆ operator<<() [7/7]

FileStream & operator<< ( FileStream out,
std::u16string_view  s 
)

Definition at line 360 of file global.cxx.

References OUStringToOString().

◆ removeTypeFile()

bool removeTypeFile ( const OString &  fileName)

Definition at line 216 of file global.cxx.

Referenced by makeValidTypeFile().