AFEPack
宏定义 | 函数
Miscellaneous.cpp文件参考
#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)

详细描述

作者:
Robert Lie
日期:
Sun Nov 4 08:53:21 2007

宏定义文档

#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 
)