NeKernel dev
Loading...
Searching...
No Matches
Boot::BDiskFormatFactory< BootDev > Class Template Referencefinal

Provide some useful processor features. More...

#include <BootKit.h>

Classes

struct  BFileDescriptor
 File entry for BDiskFormatFactory. More...

Public Member Functions

 BDiskFormatFactory ()=default
 ~BDiskFormatFactory ()=default
Boolean Format (const Char *part_name)
 Format disk using partition name and blob.
Bool IsPartitionValid () noexcept
 check if partition is good.

Private Attributes

BootDev fDiskDev

Detailed Description

template<typename BootDev>
class Boot::BDiskFormatFactory< BootDev >

Provide some useful processor features.

BootKit Drive Formatter.

Constructor & Destructor Documentation

◆ BDiskFormatFactory()

template<typename BootDev>
Boot::BDiskFormatFactory< BootDev >::BDiskFormatFactory ( )
explicitdefault

◆ ~BDiskFormatFactory()

template<typename BootDev>
Boot::BDiskFormatFactory< BootDev >::~BDiskFormatFactory ( )
default

Member Function Documentation

◆ Format()

template<typename BootDev>
Boolean Boot::BDiskFormatFactory< BootDev >::Format ( const Char * part_name)
inline

Format disk using partition name and blob.

Format disk with a specific partition scheme.

Parameters
Partitionpart_name the target partition name.
blobblobs array.
blob_szblobs array count.
Return values
Truedisk has been formatted.
Falsefailed to format.
Parameters
part_namepartition Name
Return values
Truedisk has been formatted.
Falsefailed to format.

◆ IsPartitionValid()

template<typename BootDev>
Bool Boot::BDiskFormatFactory< BootDev >::IsPartitionValid ( )
inlinenoexcept

check if partition is good.

Member Data Documentation

◆ fDiskDev

template<typename BootDev>
BootDev Boot::BDiskFormatFactory< BootDev >::fDiskDev
private

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