SaturnRingLibrary 0.7
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  SeekMode : uint32_t { Absolute = 0 , Relative , EndOfFile }
 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.
 

Member Enumeration Documentation

◆ SeekMode

enum SRL::Cd::SeekMode : uint32_t

CD seek mode.

Enumerator
Absolute 

Seek to absolute location.

Relative 

Seek relative to current location.

EndOfFile 

Seek to the end.

Member Function Documentation

◆ ChangeDir() [1/2]

static void SRL::Cd::ChangeDir ( char * name)
inlinestatic

Change current directory.

Parameters
nameDirectory name (NULL for root directory)

◆ ChangeDir() [2/2]

static void SRL::Cd::ChangeDir ( const char * name)
inlinestatic

Change current directory.

Parameters
nameDirectory name (NULL for root directory)

◆ Initialize()

static bool SRL::Cd::Initialize ( )
inlinestatic

Initialize file handling stuff.

Returns
True if initialized without error