#include "lsm_convert.hpp"
#include "libstoragemgmt/libstoragemgmt_accessgroups.h"
#include "libstoragemgmt/libstoragemgmt_blockrange.h"
#include "libstoragemgmt/libstoragemgmt_nfsexport.h"
Go to the source code of this file.
Value access_group_list_to_value | ( | lsm_access_group ** | group, | |
uint32_t | count | |||
) |
Converts an array of lsm_access_group to Value(s)
group | Pointer to an array of lsm_access_group | |
count | Number of items in array. |
Definition at line 408 of file lsm_convert.cpp.
Value access_group_to_value | ( | lsm_access_group * | group | ) |
Converts a lsm_access_group to a Value
group | Group to convert |
Definition at line 349 of file lsm_convert.cpp.
Value block_range_list_to_value | ( | lsm_block_range ** | brl, | |
uint32_t | count | |||
) |
Converts an array of lsm_block_range to Value
brl | An array of lsm_block_range | |
count | Number of items in input |
Definition at line 471 of file lsm_convert.cpp.
Value block_range_to_value | ( | lsm_block_range * | br | ) |
Converts a lsm_block_range to a Value
br | lsm_block_range to convert |
Definition at line 437 of file lsm_convert.cpp.
Value capabilities_to_value | ( | lsm_storage_capabilities * | cap | ) |
Converts a lsm_storage_capabilities to a value
cap | lsm_storage_capabilities to convert to value |
Definition at line 639 of file lsm_convert.cpp.
Converts a lsm_disk to a value
disk | lsm_disk to convert to value |
Definition at line 145 of file lsm_convert.cpp.
Converts a lsm_fs pointer to a Value
fs | File system pointer to convert |
Definition at line 503 of file lsm_convert.cpp.
bool is_expected_object | ( | Value & | obj, | |
std::string | class_name | |||
) |
Checks to see if a value is an expected object instance
obj | Value to check | |
class_name | Class name to check |
Definition at line 24 of file lsm_convert.cpp.
Value nfs_export_to_value | ( | lsm_nfs_export * | exp | ) |
Converts a lsm_nfs_export pointer to a Value
exp | NFS export pointer to convert |
Definition at line 605 of file lsm_convert.cpp.
Converts a lsm_pool * to Value
pool | Pool pointer to convert |
Definition at line 232 of file lsm_convert.cpp.
Converts a lsm_ss pointer to a Value
ss | Snapshot pointer to convert |
Definition at line 537 of file lsm_convert.cpp.
Value string_list_to_value | ( | lsm_string_list * | sl | ) |
Converts a lsm_string_list to a Value
sl | String list to convert |
Definition at line 309 of file lsm_convert.cpp.
Value system_to_value | ( | lsm_system * | system | ) |
Converts a lsm_system * to a Value
system | pointer to convert to Value |
Definition at line 269 of file lsm_convert.cpp.
Value target_port_to_value | ( | lsm_target_port * | tp | ) |
Converts a lsm_target_port to a value
tp | lsm_target_port to convert to value |
Definition at line 672 of file lsm_convert.cpp.
Value uint32_array_to_value | ( | uint32_t * | uint32_array, | |
uint32_t | count | |||
) |
Converts an array of uint32 to a value.
Definition at line 721 of file lsm_convert.cpp.
int value_array_to_access_groups | ( | Value & | group, | |
lsm_access_group ** | ag_list[], | |||
uint32_t * | count | |||
) |
Converts an access group list to an array of access group pointers
[in] | group | Value representing a std::vector of access groups |
[out] | ag_list | Access group array |
[out] | count | Number of items in the returned array. |
Definition at line 365 of file lsm_convert.cpp.
Converts a vector of disk values to an array.
[in] | disk_values | Vector of values that represents disks |
[out] | disks | An array of disk pointers |
[out] | count | Number of disks |
Definition at line 163 of file lsm_convert.cpp.
int value_array_to_volumes | ( | Value & | volume_values, | |
lsm_volume ** | volumes[], | |||
uint32_t * | count | |||
) |
Converts a vector of volume values to an array
volume_values | Vector of values that represents volumes | |
volumes | An array of volume pointers | |
count | Number of volumes |
Definition at line 78 of file lsm_convert.cpp.
lsm_access_group* value_to_access_group | ( | Value & | group | ) |
Converts a Value to a lsm_access_group
group | to convert to lsm_access_group* |
Definition at line 323 of file lsm_convert.cpp.
lsm_block_range* value_to_block_range | ( | Value & | br | ) |
Converts a Value to a lsm_block_range
br | Value representing a block range |
Definition at line 422 of file lsm_convert.cpp.
lsm_block_range** value_to_block_range_list | ( | Value & | brl, | |
uint32_t * | count | |||
) |
Converts a Value to an array of lsm_block_range
[in] | brl | Value representing block range(s) |
[out] | count | Number of items in the resulting array |
Definition at line 450 of file lsm_convert.cpp.
lsm_storage_capabilities* value_to_capabilities | ( | Value & | exp | ) |
Converts a Value to a lsm_storage_capabilities
exp | Value representing a storage capabilities |
Definition at line 627 of file lsm_convert.cpp.
Converts a Value to a lsm_disk
disk | Value representing a disk |
Definition at line 124 of file lsm_convert.cpp.
Converts a value to a lsm_fs *
fs | Value representing a FS to be converted |
Definition at line 484 of file lsm_convert.cpp.
lsm_nfs_export* value_to_nfs_export | ( | Value & | exp | ) |
Converts a value to a lsm_nfs_export *
exp | Value representing a nfs export to be converted |
Definition at line 551 of file lsm_convert.cpp.
Converts a value to a pool
pool | To convert to lsm_pool * |
Definition at line 209 of file lsm_convert.cpp.
Converts a value to a lsm_ss *
ss | Value representing a snapshot to be converted |
Definition at line 521 of file lsm_convert.cpp.
lsm_string_list* value_to_string_list | ( | Value & | list | ) |
Converts an array of Values to a lsm_string_list
list | List represented as an vector of strings. |
Definition at line 284 of file lsm_convert.cpp.
lsm_system* value_to_system | ( | Value & | system | ) |
Converts a value to a system
system | to convert to lsm_system * |
Definition at line 252 of file lsm_convert.cpp.
lsm_target_port* value_to_target_port | ( | Value & | tp | ) |
Convert a Value representation to lsm_target_port
tp | Value to convert to lsm_target_port |
Definition at line 653 of file lsm_convert.cpp.
lsm_volume* value_to_volume | ( | Value & | vol | ) |
Converts a volume to a volume.
vol | Value to convert. |
Definition at line 36 of file lsm_convert.cpp.
int values_to_uint32_array | ( | Value & | value, | |
uint32_t ** | uint32_array, | |||
uint32_t * | count | |||
) |
Converts a value to array of uint32.
Definition at line 690 of file lsm_convert.cpp.
Value volume_to_value | ( | lsm_volume * | vol | ) |
Converts a lsm_volume *to a Value
vol | lsm_volume to convert |
Definition at line 59 of file lsm_convert.cpp.