23 #ifndef STORAGE_TOPOLOGY_H 24 #define STORAGE_TOPOLOGY_H 27 #include <libxml/tree.h> 43 Topology(
long alignment_offset,
unsigned long optimal_io_size);
51 long get_alignment_offset()
const;
52 void set_alignment_offset(
long alignment_offset);
54 unsigned long get_optimal_io_size()
const;
55 void set_optimal_io_size(
unsigned long optimal_io_size);
57 unsigned long get_minimal_grain()
const;
58 void set_minimal_grain(
unsigned long minimal_grain);
60 bool operator==(
const Topology& rhs)
const;
61 bool operator!=(
const Topology& rhs)
const;
63 friend std::ostream& operator<<(std::ostream& s,
const Topology& topology);
70 const Impl& get_impl()
const;
72 friend bool getChildValue(
const xmlNode* node,
const char* name,
Topology& topology);
73 friend void setChildValue(xmlNode* node,
const char* name,
const Topology& topology);
77 const std::unique_ptr<Impl> impl;
A class to represent hardware alignment information.
Definition: Topology.h:38
The storage namespace.
Definition: Actiongraph.h:37