OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4AulUserFile Class Reference

#include <C4Aul.h>

Public Member Functions

 C4AulUserFile (int32_t handle)
 
void Write (const char *data, size_t data_length)
 
const char * GetFileContents ()
 
StdStrBuf GrabFileContents ()
 
size_t GetFileLength ()
 
int32_t GetHandle () const
 

Detailed Description

Definition at line 89 of file C4Aul.h.

Constructor & Destructor Documentation

C4AulUserFile::C4AulUserFile ( int32_t  handle)
inline

Definition at line 95 of file C4Aul.h.

95 : handle(handle) {}

Member Function Documentation

const char* C4AulUserFile::GetFileContents ( )
inline

Definition at line 98 of file C4Aul.h.

References StdStrBuf::getData().

98 { return sContents.getData(); }
const char * getData() const
Definition: StdBuf.h:442

Here is the call graph for this function:

size_t C4AulUserFile::GetFileLength ( )
inline

Definition at line 100 of file C4Aul.h.

References StdStrBuf::getLength().

Referenced by C4EditCursor::PerformDuplication(), and C4Game::SaveData().

100 { return sContents.getLength(); }
size_t getLength() const
Definition: StdBuf.h:445

Here is the call graph for this function:

Here is the caller graph for this function:

int32_t C4AulUserFile::GetHandle ( ) const
inline

Definition at line 101 of file C4Aul.h.

101 { return handle; }
StdStrBuf C4AulUserFile::GrabFileContents ( )
inline

Definition at line 99 of file C4Aul.h.

References StdStrBuf::Take().

Referenced by C4EditCursor::PerformDuplication(), and C4Game::SaveData().

99 { StdStrBuf r; r.Take(sContents); return r; }
void Take(char *pnData)
Definition: StdBuf.h:457

Here is the call graph for this function:

Here is the caller graph for this function:

void C4AulUserFile::Write ( const char *  data,
size_t  data_length 
)
inline

Definition at line 96 of file C4Aul.h.

References StdStrBuf::Append().

96 { sContents.Append(data, data_length); }
void Append(const char *pnData, size_t iChars)
Definition: StdBuf.h:519

Here is the call graph for this function:


The documentation for this class was generated from the following file: