Storage::Disk::GPT::PartitionTable Class Reference

#include <GPT.h>

Inheritance diagram for Storage::Disk::GPT::PartitionTable:
Collaboration diagram for Storage::Disk::GPT::PartitionTable:

Public Member Functions

bool add (const String &name, SysType sysType, storage_size_t offset, storage_size_t size, const Uuid &uniqueGuid={}, const Uuid &typeGuid={}, Partition::Flags flags=0)
 Add a new standard GPT partition definition. More...
 
bool add (const String &name, Partition::FullType type, storage_size_t offset, storage_size_t size, const Uuid &uniqueGuid={}, Partition::Flags flags=0)
 Add a new GPT partition for a regular Sming filing system. More...
 
- Public Member Functions inherited from OwnedLinkedObjectListTemplate< ObjectType >
 OwnedLinkedObjectListTemplate ()=default
 
 OwnedLinkedObjectListTemplate (const OwnedLinkedObjectListTemplate &other)=delete
 
OwnedLinkedObjectListTemplateoperator= (const OwnedLinkedObjectListTemplate &other)=delete
 
 ~OwnedLinkedObjectListTemplate ()
 
bool remove (ObjectType *object)
 
void clear ()
 
- Public Member Functions inherited from LinkedObjectListTemplate< ObjectType >
 LinkedObjectListTemplate ()=default
 
 LinkedObjectListTemplate (ObjectType *object)
 
ObjectType * head ()
 
const ObjectType * head () const
 
Iterator begin ()
 
Iterator end ()
 
ConstIterator begin () const
 
ConstIterator end () const
 
bool add (ObjectType *object)
 
bool add (const ObjectType *object)
 
bool insert (ObjectType *object)
 
bool insert (const ObjectType *object)
 
ObjectType * pop ()
 
size_t count () const
 
bool contains (const ObjectType &object) const
 
- Public Member Functions inherited from LinkedObjectList
 LinkedObjectList ()
 
 LinkedObjectList (LinkedObject *object)
 
bool add (LinkedObject *object)
 
bool add (const LinkedObject *object)
 
bool insert (LinkedObject *object)
 
bool insert (const LinkedObject *object)
 
bool remove (LinkedObject *object)
 
LinkedObjectpop ()
 
void clear ()
 
LinkedObjecthead ()
 
const LinkedObjecthead () const
 
bool isEmpty () const
 

Additional Inherited Members

- Public Types inherited from LinkedObjectListTemplate< ObjectType >
using Iterator = typename LinkedObjectTemplate< ObjectType >::template IteratorTemplate< ObjectType, ObjectType *, ObjectType & >
 
using ConstIterator = typename LinkedObjectTemplate< ObjectType >::template IteratorTemplate< const ObjectType, const ObjectType *, const ObjectType & >
 
- Protected Attributes inherited from LinkedObjectList
LinkedObjectmHead {nullptr}
 

Member Function Documentation

◆ add() [1/2]

bool Storage::Disk::GPT::PartitionTable::add ( const String name,
Partition::FullType  type,
storage_size_t  offset,
storage_size_t  size,
const Uuid uniqueGuid = {},
Partition::Flags  flags = 0 
)
inline

Add a new GPT partition for a regular Sming filing system.

Parameters
namePartition name
typeSming partition type/subtype
offsetStart offset, or 0 to have position calculated
sizeSize of partition (in bytes), or percentage (0-100) of total partitionable disk space
uniqueGuidUnique partition identifier (optional: will be generated if not provided)
flags
Return values
booltrue on success
Note
These partitions use a custom type GUID and won't be recognised by external software.

◆ add() [2/2]

bool Storage::Disk::GPT::PartitionTable::add ( const String name,
SysType  sysType,
storage_size_t  offset,
storage_size_t  size,
const Uuid uniqueGuid = {},
const Uuid typeGuid = {},
Partition::Flags  flags = 0 
)
inline

Add a new standard GPT partition definition.

Parameters
namePartition name
sysTypeIntended content for this partition
offsetStart offset, or 0 to have position calculated
sizeSize of partition (in bytes), or percentage (0-100) of total partitionable disk space
uniqueGuidUnique partition identifier (optional: will be generated if not provided)
typeGuidPartition type GUID (default is BASIC_DATA)
flags
Return values
booltrue on success

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