#include <ctfilesystem2.h>
Public Member Functions | |
Constructors and destructors | |
CTSuperBlock () | |
CTSuperBlock (const string &block) | |
CTSuperBlock (unsigned int mediumSize) | |
~CTSuperBlock () | |
General information about the medium | |
const string | mediumName () const |
int | mediumSize () |
unsigned char | versionMajor () const |
unsigned char | versionMinor () const |
bool | isCrypted () const |
bool | isReadOnly () const |
Structural information | |
int | blockSize () const |
int | blocks () const |
Internal information | |
These methods are not part of the API an may therefore change or even disappear in future versions. | |
int | reservedBlocks () const |
int | firstDirBlock () const |
const string | userName () const |
bool | changed () const |
Internal setters | |
void | setMediumName (const string &n) |
void | setBlockSize (int n) |
void | setBlocks (int n) |
void | setReservedBlocks (int i) |
void | setMediumSize (int n) |
void | setVersion (int mj, int mn) |
void | setIsCrypted (bool b) |
void | setIsReadOnly (bool b) |
void | setFirstDirBlock (int i) |
void | setUserName (const string &n) |
void | setChanged (bool b) |
Internal conversion operations | |
string | toString () |
string | dump () |
|
|
|
|
|
|
|
|
|
Returns the number of data blocks on this card. You can use this and the value of blockSize() to determine the for data storage usable capacity of the card. |
|
Returns the size of a data block in bytes. You can use this and the value of blocks() to determine the for data storage usable capacity of the card. |
|
|
|
|
|
|
|
Tells whether the data on the card is encrypted. |
|
Tells whether the data on the card should be protected against writing.
|
|
Returns the name you assigned to the card. To protect yourself against acidental data losses you should keeps the names of your card unique ! |
|
Returns the capacity of the card. This value does not represent the capacity for data storage, since the file system occupies a part of the memory for management purposes. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Returns the major version of the file system on the card. The file system library will refuse to mount a medium whose major version does not math that of the library. |
|
Returns the minor version of the file system on the card. It may differ from that of the library.
|