libnedit
Lightweight C++ library for Nintendo DS(i) formats
Loading...
Searching...
No Matches
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
ntr::fmt::SDAT Struct Reference
Inheritance diagram for ntr::fmt::SDAT:
ntr::fs::ExternalFsFileFormat ntr::fs::FileFormat

Classes

struct  BankInfo
 
struct  FileAllocationTableBlock
 
struct  FileAllocationTableRecord
 
struct  FileBlock
 
struct  GroupInfo
 
struct  Header
 
struct  InfoBlock
 
struct  InfoRecord
 
struct  InfoRecordEntry
 
struct  PlayerInfo
 
struct  SequenceArchiveInfo
 
struct  SequenceArchiveSymbolRecord
 
struct  SequenceArchiveSymbolRecordEntry
 
struct  SequenceInfo
 
struct  StreamInfo
 
struct  StreamPlayerInfo
 
struct  SymbolBlock
 
struct  SymbolRecord
 
struct  SymbolRecordEntry
 
struct  WaveArchiveInfo
 

Public Member Functions

 SDAT (const SDAT &)=delete
 
bool HasSymbols ()
 
Result LocateFile (const std::string &path, u32 &out_file_id)
 
Result ValidateImpl (const std::string &path, std::shared_ptr< fs::FileHandle > file_handle, const fs::FileCompression comp) override
 
Result ReadImpl (const std::string &path, std::shared_ptr< fs::FileHandle > file_handle, const fs::FileCompression comp) override
 
Result SaveFileSystem () override
 
- Public Member Functions inherited from ntr::fs::ExternalFsFileFormat
std::string GetExternalFsPath (const std::string &path)
 
std::string GetBasePath (const std::string &ext_fs_path)
 
Result WriteImpl (const std::string &path, std::shared_ptr< fs::FileHandle > file_handle, const fs::FileCompression comp) override
 
- Public Member Functions inherited from ntr::fs::FileFormat
Result Validate (const std::string &path, std::shared_ptr< fs::FileHandle > file_handle, const fs::FileCompression comp=fs::FileCompression::None)
 
Result ReadFrom (const std::string &path, std::shared_ptr< fs::FileHandle > file_handle, const fs::FileCompression comp=fs::FileCompression::None)
 
Result ReadCompressedFrom (const std::string &path, std::shared_ptr< fs::FileHandle > file_handle)
 
Result WriteTo (const std::string &path, std::shared_ptr< fs::FileHandle > file_handle)
 
Result WriteTo (std::shared_ptr< fs::FileHandle > file_handle)
 

Static Public Member Functions

static std::string MakeSWARPath (const std::string &swar_file)
 

Public Attributes

Header header
 
SymbolBlock symb
 
InfoBlock info
 
FileAllocationTableBlock fat
 
FileBlock file
 
SymbolRecord seq_symb_record
 
SequenceArchiveSymbolRecord seq_arc_symb_record
 
SymbolRecord bnk_symb_record
 
SymbolRecord wav_arc_symb_record
 
SymbolRecord player_symb_record
 
SymbolRecord group_symb_record
 
SymbolRecord strm_player_symb_record
 
SymbolRecord strm_symb_record
 
InfoRecord< SequenceInfoseq_info_record
 
InfoRecord< SequenceArchiveInfoseq_arc_info_record
 
InfoRecord< BankInfobnk_info_record
 
InfoRecord< WaveArchiveInfowav_arc_info_record
 
InfoRecord< PlayerInfoplayer_info_record
 
InfoRecord< GroupInfogroup_info_record
 
InfoRecord< StreamPlayerInfostrm_player_info_record
 
InfoRecord< StreamInfostrm_info_record
 
std::vector< FileAllocationTableRecordfat_records
 
- Public Attributes inherited from ntr::fs::ExternalFsFileFormat
u32 ext_fs_id
 
std::string ext_fs_root_path
 
- Public Attributes inherited from ntr::fs::FileFormat
std::string read_path
 
std::shared_ptr< fs::FileHandleread_file_handle
 
std::string write_path
 
std::shared_ptr< fs::FileHandlewrite_file_handle
 
fs::FileCompression comp
 

Static Public Attributes

static constexpr auto SSEQVirtualDirectoryName = "sseq"
 
static constexpr auto SSARVirtualDirectoryName = "ssar"
 
static constexpr auto SBNKVirtualDirectoryName = "sbnk"
 
static constexpr auto SWARVirtualDirectoryName = "swar"
 
static constexpr auto STRMVirtualDirectoryName = "strm"
 

Member Function Documentation

◆ ReadImpl()

Result ntr::fmt::SDAT::ReadImpl ( const std::string & path,
std::shared_ptr< fs::FileHandle > file_handle,
const fs::FileCompression comp )
overridevirtual

Implements ntr::fs::FileFormat.

◆ SaveFileSystem()

Result ntr::fmt::SDAT::SaveFileSystem ( )
overridevirtual

◆ ValidateImpl()

Result ntr::fmt::SDAT::ValidateImpl ( const std::string & path,
std::shared_ptr< fs::FileHandle > file_handle,
const fs::FileCompression comp )
overridevirtual

Implements ntr::fs::FileFormat.


The documentation for this struct was generated from the following files: