AFEPack
|
#include "Miscellaneous.h"
#include <boost/iostreams/device/file.hpp>
#include <boost/iostreams/char_traits.hpp>
#include <boost/iostreams/concepts.hpp>
#include <boost/iostreams/operations.hpp>
宏定义 | |
#define | LIB_PATH "AFEPACK_TEMPLATE_PATH" |
函数 | |
void | OpenFilteredStream (const std::string &filename, filtering_istream &is) |
void | OpenAFEPackLibraryFile (const std::string &file, filtering_istream &is) |
void | LoadLibraryFunction (dlhandle_t &handle, const std::string &sym, dlhandle_t &fun_ptr) |
void | ExpandString (std::string &str) |
void | StringToWord (const std::string &str, const char &c, std::vector< std::string > &result) |
void | CombineString (const std::vector< std::string > &prefix, const std::vector< std::string > &suffix, std::vector< std::string > &result) |
std::string | FindAFEPackLibraryFilePath (const std::string &filename) |
dlhandle_t | AFEPackDLOpen (const std::string &filename) |
#define LIB_PATH "AFEPACK_TEMPLATE_PATH" |
dlhandle_t AFEPackDLOpen | ( | const std::string & | filename | ) |
打开共享库并返回一个共享库的句柄
void CombineString | ( | const std::vector< std::string > & | prefix, |
const std::vector< std::string > & | suffix, | ||
std::vector< std::string > & | result | ||
) |
void ExpandString | ( | std::string & | str | ) |
std::string FindAFEPackLibraryFilePath | ( | const std::string & | filename | ) |
搜索指定的路径,根据文件名找到包含库文件的完整路径的文件名
filename | 文件名 |
void LoadLibraryFunction | ( | dlhandle_t & | handle, |
const std::string & | sym, | ||
dlhandle_t & | fun_ptr | ||
) |
从共享库中载入一个函数
handle | 共享库句柄 |
sym | 函数名 |
fun_ptr | 返回的函数指针 |
void OpenAFEPackLibraryFile | ( | const std::string & | filename, |
filtering_istream & | is | ||
) |
搜索指定的路径,找到库文件,并打开为一个流
filename | 库文件名 |
is | 打开的流 |
void OpenFilteredStream | ( | const std::string & | filename, |
filtering_istream & | is | ||
) |
根据文件名,将其打开为一个过滤的流,流中的 shell 脚本型的注释将被 过滤掉。RealHP 的打开的各种文本型的库文件都事实上使用本函数打开为 一个流,从而其中支持使用 shell 脚本型的注释。
filename | 文件名 |
is | 打开的过滤流 |
void StringToWord | ( | const std::string & | str, |
const char & | c, | ||
std::vector< std::string > & | result | ||
) |