HDF5Library.h 735 Bytes
Newer Older
Jan Kremer's avatar
Jan Kremer committed
1 2 3 4 5 6
// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "Kismet/BlueprintFunctionLibrary.h"
7
#include "H5Cpp.h"
Jan Kremer's avatar
Jan Kremer committed
8
#include "HDF5Library.generated.h"
9
using namespace H5;
Jan Kremer's avatar
Jan Kremer committed
10 11

/**
12
 *
Jan Kremer's avatar
Jan Kremer committed
13 14 15 16 17
 */
UCLASS()
class IMMERSIVEANALYTICS_API UHDF5Library : public UBlueprintFunctionLibrary
{
	GENERATED_BODY()
18

Jan Kremer's avatar
Jan Kremer committed
19
public:
20 21 22
	static H5File LoadFile(FString FileName, TArray<FString>& GroupNames);
	static bool LoadGroup(H5File File, FString GroupName, TArray<float>& X, TArray<float>& Y, TArray<float>& Z, TArray<float>& U, TArray<float>& V, TArray<float>& W);

23 24 25
private:
	static DataSet getDatasetByName(Group & group, char * name);
	static Group getGroupByName(H5File & file, FString name);
Jan Kremer's avatar
Jan Kremer committed
26
};