Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // =================================================================
- // CPPActor.h
- // =================================================================
- #pragma once
- #include "GameFramework/Actor.h"
- #include "StringTrial.h"
- #include "CustomProcess.h"
- #include "CPPActor.generated.h"
- /**
- *
- */
- UCLASS()
- class BUILDUP_API ACPPActor : public AActor
- {
- public:
- GENERATED_BODY()
- UFUNCTION(BlueprintCallable, Category = "StringTrial")
- FString getTrial();
- UFUNCTION(BlueprintCallable, Category = "StringTrial")
- void updateString(FString input);
- UFUNCTION(BlueprintCallable, Category = "ProcessTrial")
- void startCustomProcess();
- UFUNCTION(BlueprintCallable, Category = "ProcessTrial")
- double getCustomResult();
- private:
- StringTrial m_trial;
- CustomProcess m_processor;
- };
- // =================================================================
- // CPPActor.cpp
- // =================================================================
- // Fill out your copyright notice in the Description page of Project Settings.
- #include "BuildUp.h"
- #include "CPPActor.h"
- void ACPPActor::updateString(FString input){
- m_trial.updateField(TCHAR_TO_UTF8(*input));
- }
- FString ACPPActor::getTrial() {
- return FString(m_trial.getField().c_str());
- }
- void ACPPActor::startCustomProcess() {
- m_processor.startProcess();
- m_processor.merge();
- }
- double ACPPActor::getCustomResult() {
- return m_processor.getElapsedTime();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement