libstorage-ng
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
31namespace 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
71 Ntfs(Impl* impl);
72
73 };
74
75
81 bool is_ntfs(const Device* device);
82
89 Ntfs* to_ntfs(Device* device);
90
94 const Ntfs* to_ntfs(const Device* device);
95
96}
97
98#endif
Definition: BlkFilesystem.h:43
An abstract base class for storage devices.
Definition: Device.h:82
The main container of the libstorage-ng.
Definition: Devicegraph.h:170
Class to represent an NTFS filesystem https://en.wikipedia.org/wiki/NTFS in the devicegraph.
Definition: Ntfs.h:39
static std::vector< Ntfs * > get_all(Devicegraph *devicegraph)
Get all Ntfses.
static Ntfs * create(Devicegraph *devicegraph)
Create a device of type Ntfs.
static std::vector< const Ntfs * > get_all(const Devicegraph *devicegraph)
Get all Ntfses.
The storage namespace.
Definition: Actiongraph.h:40
Ntfs * to_ntfs(Device *device)
Converts pointer to Device to pointer to Ntfs.
bool is_ntfs(const Device *device)
Checks whether device points to a Ntfs.