当前位置: 首页 > news >正文

做网站较好的框架asp网站可运行jsp吗

做网站较好的框架,asp网站可运行jsp吗,做网站的属于什么专业?,ppt在线预览wordpress首先在虚幻引擎中创建UMyBlueprintFunctionLibrary类#xff0c;可以在该类中写我们重复利用的功能#xff0c;并且这些功能不依赖于特定的游戏对象#xff0c;方便全局调用。 1.文件的读取和写入 UFUNCTION(BlueprintCallable, Category File)static bool lo…       首先在虚幻引擎中创建UMyBlueprintFunctionLibrary类可以在该类中写我们重复利用的功能并且这些功能不依赖于特定的游戏对象方便全局调用。 1.文件的读取和写入 UFUNCTION(BlueprintCallable, Category File)static bool loadStringFromFile(FString filePath, FString resultString);UFUNCTION(BlueprintCallable, Category File)static bool writeStringToFile(TArrayFString saveFile, FString filePath); bool UMyBlueprintFunctionLibrary::loadStringFromFile(FString filePath, FString resultString) {if (!filePath.IsEmpty()){if (FFileHelper::LoadFileToString(resultString, *filePath)){return true;}else{//error}}return false; }bool UMyBlueprintFunctionLibrary::writeStringToFile(TArrayFString saveFile, FString filePath) {if (!filePath.IsEmpty()){if (FFileHelper::SaveStringArrayToFile(saveFile, *filePath)){return true;}else{//error}}return false; } 2.获取文件名、后缀名、文件名 UFUNCTION(BlueprintCallable, Category File)static FString GetFilePath(FString path);UFUNCTION(BlueprintCallable, Category File)static FString GetFileName(FString InPath,bool bRemovePath);UFUNCTION(BlueprintCallable, Category File)static FString GetFileExtension(FString InPath, bool bInCludeDot); FString UMyBlueprintFunctionLibrary::GetFilePath(FString path) {FString result;result FPaths::GetPath(*path);return result; }FString UMyBlueprintFunctionLibrary::GetFileName(FString InPath, bool bRemovePath) {return FPaths::GetBaseFilename(*InPath,bRemovePath); }FString UMyBlueprintFunctionLibrary::GetFileExtension(FString InPath, bool bInCludeDot) {return FPaths::GetExtension(*InPath,bInCludeDot); } 3.创建文件夹和删除文件夹 UFUNCTION(BlueprintCallable, Category File)static void CreateFolder(FString FolderName);UFUNCTION(BlueprintCallable, Category File)static void DeleteFolder(FString FolderName); 在cpp中引入FileManagerGeneric.h #include Runtime/Core/Public/HAL/FileManagerGeneric.h void UMyBlueprintFunctionLibrary::CreateFolder(FString FolderName) {//FString path FPaths::ProjectContentDir();FPlatformFileManager::Get().GetPlatformFile().CreateDirectoryTree(*FolderName); }void UMyBlueprintFunctionLibrary::DeleteFolder(FString FolderName) {//FString path FPaths::ProjectContentDir();FPlatformFileManager::Get().GetPlatformFile().DeleteDirectoryRecursively(*FolderName); } 4.文件的移动和查找 UFUNCTION(BlueprintCallable, Category File)static bool MoveFileTo(FString To, FString From);UFUNCTION(BlueprintCallable, Category File)static TArrayFString FindFileFolder(FString Path, FString Filter, bool Files, bool Directory); bool UMyBlueprintFunctionLibrary::MoveFileTo(FString To, FString From) {return IFileManager::Get().Move(*To,*From); }TArrayFString UMyBlueprintFunctionLibrary::FindFileFolder(FString Path, FString Filter, bool Files, bool Directory) {TArrayFString FilePathList;FilePathList.Empty();FFileManagerGeneric::Get().FindFilesRecursive(FilePathList, *Path, *Filter, Files, Directory);return FilePathList; } 5.全部代码 h文件部分 // Fill out your copyright notice in the Description page of Project Settings.#pragma once#include CoreMinimal.h #include Kismet/BlueprintFunctionLibrary.h #include MyBlueprintFunctionLibrary.generated.h/*** */ UCLASS() class STUDYCODEPROJECT_API UMyBlueprintFunctionLibrary : public UBlueprintFunctionLibrary {GENERATED_BODY() public:UFUNCTION(BlueprintCallable, Category File)static bool loadStringFromFile(FString filePath, FString resultString);UFUNCTION(BlueprintCallable, Category File)static bool writeStringToFile(TArrayFString saveFile, FString filePath);UFUNCTION(BlueprintCallable, Category File)static FString GetFilePath(FString path);UFUNCTION(BlueprintCallable, Category File)static FString GetFileName(FString InPath,bool bRemovePath);UFUNCTION(BlueprintCallable, Category File)static FString GetFileExtension(FString InPath, bool bInCludeDot);UFUNCTION(BlueprintCallable, Category File)static void CreateFolder(FString FolderName);UFUNCTION(BlueprintCallable, Category File)static void DeleteFolder(FString FolderName);UFUNCTION(BlueprintCallable, Category File)static bool MoveFileTo(FString To, FString From);UFUNCTION(BlueprintCallable, Category File)static TArrayFString FindFileFolder(FString Path, FString Filter, bool Files, bool Directory); };cpp文件部分 // Fill out your copyright notice in the Description page of Project Settings.#include MyBlueprintFunctionLibrary.h #include Runtime/Core/Public/HAL/FileManagerGeneric.hbool UMyBlueprintFunctionLibrary::loadStringFromFile(FString filePath, FString resultString) {if (!filePath.IsEmpty()){if (FFileHelper::LoadFileToString(resultString, *filePath)){return true;}else{//error}}return false; }bool UMyBlueprintFunctionLibrary::writeStringToFile(TArrayFString saveFile, FString filePath) {if (!filePath.IsEmpty()){if (FFileHelper::SaveStringArrayToFile(saveFile, *filePath)){return true;}else{//error}}return false; }FString UMyBlueprintFunctionLibrary::GetFilePath(FString path) {FString result;result FPaths::GetPath(*path);return result; }FString UMyBlueprintFunctionLibrary::GetFileName(FString InPath, bool bRemovePath) {return FPaths::GetBaseFilename(*InPath,bRemovePath); }FString UMyBlueprintFunctionLibrary::GetFileExtension(FString InPath, bool bInCludeDot) {return FPaths::GetExtension(*InPath,bInCludeDot); }void UMyBlueprintFunctionLibrary::CreateFolder(FString FolderName) {//FString path FPaths::ProjectContentDir();FPlatformFileManager::Get().GetPlatformFile().CreateDirectoryTree(*FolderName); }void UMyBlueprintFunctionLibrary::DeleteFolder(FString FolderName) {//FString path FPaths::ProjectContentDir();FPlatformFileManager::Get().GetPlatformFile().DeleteDirectoryRecursively(*FolderName); }bool UMyBlueprintFunctionLibrary::MoveFileTo(FString To, FString From) {return IFileManager::Get().Move(*To,*From); }TArrayFString UMyBlueprintFunctionLibrary::FindFileFolder(FString Path, FString Filter, bool Files, bool Directory) {TArrayFString FilePathList;FilePathList.Empty();FFileManagerGeneric::Get().FindFilesRecursive(FilePathList, *Path, *Filter, Files, Directory);return FilePathList; }
http://www.hkea.cn/news/14305473/

相关文章:

  • 景点网站建设西丽网站建设
  • ppt做的最好的网站做头像网站有哪些
  • 怎样重新安装电脑wordpress盐城seo培训
  • 网站做兼容需要多少钱大数据营销的运营方式有哪些
  • 互利互通网站建设东莞电商网站建设
  • 仿站怎么修改成自己的网站工信部网站备案验证码
  • wordpress网站换主题flash网站设计教程
  • 网站建设购买数据库的流程图网站正在升级建设中
  • 公司网站的留言板怎么做多城市地方门户网站系统
  • 沈阳酒店企业网站制作网址大全免费网站
  • 自己弄个网站要怎么弄建筑网片施工中的用途
  • seo网站建设流程网站优化服务
  • 有孩子做的网站wordpress 段落 两格
  • 做英文网站内容来源app拉新佣金排行榜
  • 阿里云个人网站制作服装品牌策划方案
  • 怎么免费制作网站价格低的跑车
  • 互联网建设网站的的好处微信支付公司网站
  • 湛江制作企业网站徽章设计制作网站
  • 邢台网站建设哪家公司好jsp网站开发 英文
  • 怎么申请pc网站域名263企业邮箱登陆入囗
  • 中国建设银行网站主页网站可以用什么做
  • 黄金网站app软件下载安装wordpress显示图片慢
  • 企业建网站哪家好wordpress标题关键词描述
  • 免费文档网站企业管理咨询中心
  • 网站建设开发费用入什么科目自学做网站要学什么
  • 广告制作是做什么的临淄专业网站优化哪家好
  • 官方网站建设最重要的是什么德州网站制作哪家好
  • 大连制作网站公司杭州网站推广服务
  • 深圳网站建设相关推荐报考二级建造师官网
  • 搅拌机东莞网站建设技术支持品牌做网站