16 if (
fn ==
"" ||
fn ==
"NULL" ||
fn ==
"null")
return stat;
18 std::ifstream ifs{
fn};
21 }
catch (std::runtime_error& e) {
throw kids_error(
fn); }
virtual int getType() const
Get the type of the kernel.
virtual Status & executeKernel_impl(Status &stat)
Virtual function to execute the kernel implementation.
std::string fn
filename for loading
virtual const std::string getName()
Get the name of the kernel.
virtual void setInputParam_impl(std::shared_ptr< Param > &PM)
Virtual function to set input parameters for the kernel implementation.
std::shared_ptr< DataSet > _dataset
Shared pointer to the DataSet object associated with this kernel.
#define LOC()
show the location information for debug
< http://warp.povusers.org/FunctionParser/fparser.html
constexpr uint32_t hash(const char *str)