SaturnRingLibrary 0.9
SGL wrapper
 
Loading...
Searching...
No Matches
SRL::Cd Class Reference

Detailed Description

File and CD access wrapper.

#include <srl_cd.hpp>

Classes

struct  File
 Disk file. More...
 
struct  FileSize
 File size. More...
 
struct  TableOfContents
 Table of contents of the CD. More...
 

Public Types

enum  ErrorCode : int32_t {
  ErrorOk = GFS_ERR_OK , ErrorCDRD = GFS_ERR_CDRD , ErrorCDNoDisc = GFS_ERR_CDNODISC , ErrorCDRom = GFS_ERR_CDROM ,
  ErrorDirTLD = GFS_ERR_DIRTBL , ErrorOenMax = GFS_ERR_OPENMAX , ErrorDir = GFS_ERR_DIR , ErrorCDBFS = GFS_ERR_CDBFS ,
  ErrorNoName = GFS_ERR_NONAME , ErrorNExit = GFS_ERR_NEXIST , ErrorFID = GFS_ERR_FID , ErrorHandle = GFS_ERR_HNDL ,
  ErrorSeek = GFS_ERR_SEEK , ErrorOrg = GFS_ERR_ORG , ErrorNum = GFS_ERR_NUM , ErrorOFS = GFS_ERR_OFS ,
  ErrorFBusy = GFS_ERR_FBUSY , ErrorPara = GFS_ERR_PARA , ErrorBusy = GFS_ERR_BUSY , ErrorNoHandler = GFS_ERR_NOHNDL ,
  ErrorPUINUSE = GFS_ERR_PUINUSE , ErrorAlign = GFS_ERR_ALIGN , ErrorTimeout = GFS_ERR_TMOUT , ErrorCDOpen = GFS_ERR_CDOPEN ,
  ErrorBufferFull = GFS_ERR_BFUL , ErrorFatal = GFS_ERR_FATAL , ErrorEOF = std::numeric_limits<int32_t>::min()
}
 access errors More...
 
enum  SeekMode : uint32_t { Absolute = GFS_SEEK_SET , Relative = GFS_SEEK_CUR , EndOfFile = GFS_SEEK_END }
 CD seek mode. More...
 

Public Member Functions

 Cd ()=delete
 disable default constructor
 

Static Public Member Functions

static void ChangeDir (char *name)
 Change current directory.
 
static void ChangeDir (const char *name)
 Change current directory.
 
static bool Initialize ()
 Initialize file handling stuff.
 

Static Public Attributes

static const int MaxTrackCount = 99
 Number of tracks CD can have.