LibreOffice Module tools (master) 1
Classes | Functions
config.cxx File Reference
#include <cstddef>
#include <cstdlib>
#include <string.h>
#include <osl/file.hxx>
#include <tools/config.hxx>
#include <sal/log.hxx>
Include dependency graph for config.cxx:

Go to the source code of this file.

Classes

struct  ImplGroupData
 
struct  ImplConfigData
 

Functions

static OUString toUncPath (const OUString &rPath)
 
static sal_uInt32 ImplSysGetConfigTimeStamp (const OUString &rFileName)
 
static std::unique_ptr< sal_uInt8[]> ImplSysReadConfig (const OUString &rFileName, sal_uInt64 &rRead, bool &rbRead, bool &rbIsUTF8BOM, sal_uInt32 &rTimeStamp)
 
static bool ImplSysWriteConfig (const OUString &rFileName, const sal_uInt8 *pBuf, sal_uInt32 nBufLen, bool rbIsUTF8BOM, sal_uInt32 &rTimeStamp)
 
static void ImplMakeConfigList (ImplConfigData *pData, const sal_uInt8 *pBuf, sal_uInt64 nLen)
 
static std::unique_ptr< sal_uInt8[]> ImplGetConfigBuffer (const ImplConfigData *pData, sal_uInt32 &rLen)
 
static void ImplReadConfig (ImplConfigData *pData)
 
static void ImplWriteConfig (ImplConfigData *pData)
 
static void ImplDeleteConfigData (ImplConfigData *pData)
 
static std::unique_ptr< ImplConfigDataImplGetConfigData (const OUString &rFileName)
 

Function Documentation

◆ ImplDeleteConfigData()

static void ImplDeleteConfigData ( ImplConfigData pData)
static

Definition at line 530 of file config.cxx.

References ImplGroupData::mpFirstKey, ImplGroupData::mpNext, and pData.

Referenced by Config::ImplUpdateConfig(), and Config::~Config().

◆ ImplGetConfigBuffer()

static std::unique_ptr< sal_uInt8[]> ImplGetConfigBuffer ( const ImplConfigData pData,
sal_uInt32 &  rLen 
)
static

◆ ImplGetConfigData()

static std::unique_ptr< ImplConfigData > ImplGetConfigData ( const OUString &  rFileName)
static

Definition at line 557 of file config.cxx.

References ImplReadConfig(), and pData.

Referenced by Config::Config().

◆ ImplMakeConfigList()

static void ImplMakeConfigList ( ImplConfigData pData,
const sal_uInt8 pBuf,
sal_uInt64  nLen 
)
static

◆ ImplReadConfig()

static void ImplReadConfig ( ImplConfigData pData)
static

Definition at line 491 of file config.cxx.

References ImplMakeConfigList(), ImplSysReadConfig(), and pData.

Referenced by ImplGetConfigData(), and Config::ImplUpdateConfig().

◆ ImplSysGetConfigTimeStamp()

static sal_uInt32 ImplSysGetConfigTimeStamp ( const OUString &  rFileName)
static

◆ ImplSysReadConfig()

static std::unique_ptr< sal_uInt8[]> ImplSysReadConfig ( const OUString &  rFileName,
sal_uInt64 &  rRead,
bool &  rbRead,
bool &  rbIsUTF8BOM,
sal_uInt32 &  rTimeStamp 
)
static

Definition at line 94 of file config.cxx.

References ImplSysGetConfigTimeStamp(), and nPos.

Referenced by ImplReadConfig().

◆ ImplSysWriteConfig()

static bool ImplSysWriteConfig ( const OUString &  rFileName,
const sal_uInt8 pBuf,
sal_uInt32  nBufLen,
bool  rbIsUTF8BOM,
sal_uInt32 &  rTimeStamp 
)
static

Definition at line 137 of file config.cxx.

References ImplSysGetConfigTimeStamp().

Referenced by ImplWriteConfig().

◆ ImplWriteConfig()

static void ImplWriteConfig ( ImplConfigData pData)
static

◆ toUncPath()

static OUString toUncPath ( const OUString &  rPath)
static

Definition at line 63 of file config.cxx.

Referenced by Config::Config().