libstorage-ng
Toggle main menu visibility
Loading...
Searching...
No Matches
Ntfs.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_NTFS_H
25
#define STORAGE_NTFS_H
26
27
28
#include "storage/Filesystems/BlkFilesystem.h"
29
30
31
namespace
storage
32
{
33
38
class
Ntfs :
public
BlkFilesystem
39
{
40
public
:
41
48
static
Ntfs*
create
(
Devicegraph
* devicegraph);
49
50
static
Ntfs* load(
Devicegraph
* devicegraph,
const
xmlNode* node);
51
55
static
std::vector<Ntfs*>
get_all
(
Devicegraph
* devicegraph);
56
60
static
std::vector<const Ntfs*>
get_all
(
const
Devicegraph
* devicegraph);
61
62
public
:
63
64
class
Impl;
65
66
Impl& get_impl();
67
const
Impl& get_impl()
const
;
68
69
virtual
Ntfs* clone()
const override
;
70
virtual
std::unique_ptr<Device> clone_v2()
const override
;
71
72
Ntfs(Impl* impl);
73
ST_NO_SWIG Ntfs(std::unique_ptr<Device::Impl>&& impl);
74
75
};
76
77
83
bool
is_ntfs
(
const
Device
* device);
84
91
Ntfs
*
to_ntfs
(
Device
* device);
92
96
const
Ntfs
*
to_ntfs
(
const
Device
* device);
97
98
}
99
100
#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::Ntfs
Class to represent an NTFS filesystem https://en.wikipedia.org/wiki/NTFS in the devicegraph.
Definition
Ntfs.h:39
storage::Ntfs::get_all
static std::vector< Ntfs * > get_all(Devicegraph *devicegraph)
Get all Ntfses.
storage::Ntfs::create
static Ntfs * create(Devicegraph *devicegraph)
Create a device of type Ntfs.
storage::Ntfs::get_all
static std::vector< const Ntfs * > get_all(const Devicegraph *devicegraph)
Get all Ntfses.
storage
The storage namespace.
Definition
Actiongraph.h:40
storage::to_ntfs
Ntfs * to_ntfs(Device *device)
Converts pointer to Device to pointer to Ntfs.
storage::is_ntfs
bool is_ntfs(const Device *device)
Checks whether device points to a Ntfs.
storage
Filesystems
Ntfs.h
Generated by
1.17.0