96 #define OP_CREATE_VIS_SCRIPT 4
116 bool set_endpoint_dim_size_flag =
false;
117 bool open_flag =
false;
118 bool create_flag =
false;
130 std::vector<unsigned long long> GetDimensions();
137 void SetDimensions(std::vector<unsigned long long> endpoint_dim_size_p);
158 int GetDataElementTypeSize();
176 void SetOpenFlag(
bool open_flag_p);
178 bool GetCreateFlag();
180 void SetCreateFlag(
bool open_flag_p);
182 void SetRwFlag(
unsigned read_write_flag_p);
184 unsigned GetRwFlag();
192 std::vector<AuEndpointDataTypeUnion> Void2Union(
void *vp,
size_t n_elements);
200 void *Union2Void(std::vector<AuEndpointDataTypeUnion> &data_vector_in_union_type);
207 void SetEndpointInfo(std::string endpoint_info_p);
214 std::string GetEndpointInfo();
258 virtual int Read(std::vector<unsigned long long> start, std::vector<unsigned long long> end,
void *data) = 0;
268 virtual int Write(std::vector<unsigned long long> start, std::vector<unsigned long long> end,
void *data) = 0;
277 virtual int WriteAttribute(
const std::string &name,
const void *data,
FTDataType data_type_p,
const size_t &data_length_p = 0);
286 virtual int ReadAttribute(
const std::string &name,
void *data,
FTDataType data_type_p,
const size_t &data_length_p = 0);
288 virtual int GetAttributeSize(
const std::string &name,
FTDataType data_type_p);
306 virtual void EnableCollectiveIO();
308 virtual void DisableCollectiveIO();
315 virtual std::vector<std::string> GetDirFileVector();
322 virtual void SetDirFileVector(std::vector<std::string> &file_list);
329 virtual std::vector<int> GetDirChunkSize();
336 virtual void SetDirChunkSize(std::vector<int> &dir_chunk_size_p);
354 virtual int Control(
int opt_code, std::vector<std::string> ¶meter_v);
361 virtual int MapOpStr2Int(std::string op_cmd_str);
369 virtual std::string MapOpInt2Str(
int op_int);
Define the class for the Endpoint used by ArrayUDF to store the data. It contains basic infomation fo...
Definition: ft_endpoint.h:106
std::string data_endpoint_orig
Definition: ft_endpoint.h:114
AuEndpointType endpoint_type
Definition: ft_endpoint.h:108
Endpoint()
Definition: ft_endpoint.h:122
int endpoint_ranks
Definition: ft_endpoint.h:112
virtual int Read(std::vector< unsigned long long > start, std::vector< unsigned long long > end, void *data)=0
read the data from end-point
std::vector< unsigned long long > endpoint_size
Definition: ft_endpoint.h:110
virtual ~Endpoint()
Definition: ft_endpoint.h:123
virtual int ExtractMeta()=0
extracts metadata, possbile endpoint_ranks/endpoint_dim_size/other ep_type dependents ones
virtual int Open()=0
open the endpoint
virtual int Write(std::vector< unsigned long long > start, std::vector< unsigned long long > end, void *data)=0
write the data to the end-point
virtual void Map2MyType()=0
call the finalize to close everything (like call Destractor)
virtual int Close()=0
close the end-point
unsigned read_write_flag
Definition: ft_endpoint.h:119
virtual int ParseEndpointInfo()=0
parse endpoint_info to my own info
AuEndpointDataType data_element_type
Definition: ft_endpoint.h:113
std::string endpoint_info
Definition: ft_endpoint.h:109
virtual int Create()=0
create the endpoint
virtual int PrintInfo()=0
print information about the endpoint
AuEndpointType
Definition: ft_type.h:95
AuEndpointDataType
Definition: ft_type.h:118