51 lines
1.5 KiB
C++
51 lines
1.5 KiB
C++
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
//#include "HttpModule.h"
|
|
#include <string>
|
|
#include <functional>
|
|
#include "CoreMinimal.h"
|
|
#include "Misc/FileHelper.h"
|
|
#include "Kismet/BlueprintFunctionLibrary.h"
|
|
#include "CPPFunctionLibrary.generated.h"
|
|
|
|
/**
|
|
*
|
|
*/
|
|
UCLASS()
|
|
class FORTIS_TAKTIKA_API UCPPFunctionLibrary : public UBlueprintFunctionLibrary
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
UFUNCTION(BlueprintCallable, Category = "TextMaker")
|
|
static void CreateTxt(FString Path, FString FileName, FString text);
|
|
|
|
UFUNCTION(BlueprintCallable, Category = "File")
|
|
static bool AppendStringToFile(FString DirPath, FString FileName, FString Data);
|
|
|
|
UFUNCTION(BlueprintCallable, Category = "File")
|
|
static FString GetDataFromFile(FString FileName);
|
|
|
|
UFUNCTION(BlueprintCallable, Category = "System")
|
|
static void RunSystemCommand(FString Command);
|
|
|
|
UFUNCTION(BlueprintCallable, Category = "System")
|
|
static void GetExcelData(FString Command);
|
|
|
|
UFUNCTION(BlueprintCallable, Category = "HTTP")
|
|
static void GetContentHTTP(FString Verb, FString Payload, FString Url);
|
|
|
|
UFUNCTION(BlueprintCallable, BlueprintPure, Category = "Time")
|
|
static int32 GetUnixTimestamp();
|
|
|
|
UFUNCTION(BlueprintCallable, Category = "System")
|
|
static void CreateProc(FString PathToExec, TArray<FString> Args, bool Detach = false, bool Hidden = true, int32 Priority = 0, FString OptionalWorkDir = "");
|
|
|
|
UFUNCTION(BlueprintCallable, Category = "System")
|
|
static TArray<FString> GetHardDisksSerialNumbers();
|
|
};
|