RageFileObjMem::PutString
This commit is contained in:
@@ -102,6 +102,13 @@ const CString &RageFileObjMem::GetString() const
|
|||||||
return m_pFile->m_sBuf;
|
return m_pFile->m_sBuf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void RageFileObjMem::PutString( const CString &sBuf )
|
||||||
|
{
|
||||||
|
m_pFile->m_Mutex.Lock();
|
||||||
|
m_pFile->m_sBuf = sBuf;
|
||||||
|
m_pFile->m_Mutex.Unlock();
|
||||||
|
}
|
||||||
|
|
||||||
RageFileDriverMem::RageFileDriverMem():
|
RageFileDriverMem::RageFileDriverMem():
|
||||||
RageFileDriver( new NullFilenameDB ),
|
RageFileDriver( new NullFilenameDB ),
|
||||||
m_Mutex("RageFileDriverMem")
|
m_Mutex("RageFileDriverMem")
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ public:
|
|||||||
|
|
||||||
/* Retrieve the contents of this file. */
|
/* Retrieve the contents of this file. */
|
||||||
const CString &GetString() const;
|
const CString &GetString() const;
|
||||||
|
void PutString( const CString &sBuf );
|
||||||
|
|
||||||
private:
|
private:
|
||||||
RageFileObjMemFile *m_pFile;
|
RageFileObjMemFile *m_pFile;
|
||||||
|
|||||||
Reference in New Issue
Block a user