libstorage-ng
Toggle main menu visibility
Loading...
Searching...
No Matches
Vfat.h
1
/*
2
* Copyright (c) 2015 Novell, Inc.
3
* Copyright (c) 2020 SUSE LLC
4
*
5
* All Rights Reserved.
6
*
7
* This program is free software; you can redistribute it and/or modify it
8
* under the terms of version 2 of the GNU General Public License as published
9
* by the Free Software Foundation.
10
*
11
* This program is distributed in the hope that it will be useful, but WITHOUT
12
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14
* more details.
15
*
16
* You should have received a copy of the GNU General Public License along
17
* with this program; if not, contact Novell, Inc.
18
*
19
* To contact Novell about this file by physical or electronic mail, you may
20
* find current contact information at www.novell.com.
21
*/
22
23
24
#ifndef STORAGE_VFAT_H
25
#define STORAGE_VFAT_H
26
27
28
#include "storage/Filesystems/BlkFilesystem.h"
29
30
31
namespace
storage
32
{
33
38
class
Vfat :
public
BlkFilesystem
39
{
40
public
:
41
48
static
Vfat*
create
(
Devicegraph
* devicegraph);
49
50
static
Vfat* load(
Devicegraph
* devicegraph,
const
xmlNode* node);
51
52
public
:
53
54
class
Impl;
55
56
Impl& get_impl();
57
const
Impl& get_impl()
const
;
58
59
virtual
Vfat* clone()
const override
;
60
virtual
std::unique_ptr<Device> clone_v2()
const override
;
61
62
Vfat(Impl* impl);
63
ST_NO_SWIG Vfat(std::unique_ptr<Device::Impl>&& impl);
64
65
};
66
67
73
bool
is_vfat
(
const
Device
* device);
74
81
Vfat
*
to_vfat
(
Device
* device);
82
86
const
Vfat
*
to_vfat
(
const
Device
* device);
87
88
}
89
90
#endif
storage::Device
An abstract base class for storage devices.
Definition
Device.h:82
storage::Devicegraph
The main container of the libstorage-ng.
Definition
Devicegraph.h:170
storage::Vfat
Class to represent an VFAT filesystem https://en.wikipedia.org/wiki/Vfat in the devicegraph.
Definition
Vfat.h:39
storage::Vfat::create
static Vfat * create(Devicegraph *devicegraph)
Create a device of type Vfat.
storage
The storage namespace.
Definition
Actiongraph.h:40
storage::to_vfat
Vfat * to_vfat(Device *device)
Converts pointer to Device to pointer to Vfat.
storage::is_vfat
bool is_vfat(const Device *device)
Checks whether device points to a Vfat.
storage
Filesystems
Vfat.h
Generated by
1.17.0