LlamaLib  v2.0.2
Cross-platform library for local LLMs
Loading...
Searching...
No Matches
defs.h File Reference

File with basic definitions. More...

#include <sys/stat.h>
#include <string>
#include "json.hpp"
Include dependency graph for defs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

using json = nlohmann::ordered_json
 
typedef void(* CharArrayFn) (const char *)
 

Functions

std::string join_paths (const std::string &a, const std::string &b)
 
bool file_exists (const std::string &path)
 
bool is_file (const std::string &path)
 
bool is_directory (const std::string &path)
 
bool always_false ()
 
std::string args_to_command (int argc, char **argv)
 
void CharArray_Delete (char *object)
 

Variables

const char SEP = '/'
 

Detailed Description

File with basic definitions.

Definition in file defs.h.

Macro Definition Documentation

◆ UNDREAMAI_API

#define UNDREAMAI_API

Definition at line 29 of file defs.h.

Typedef Documentation

◆ CharArrayFn

typedef void(* CharArrayFn) (const char *)

Definition at line 34 of file defs.h.

◆ json

using json = nlohmann::ordered_json

Definition at line 32 of file defs.h.

Function Documentation

◆ always_false()

bool always_false ( )
inline

Definition at line 71 of file defs.h.

◆ args_to_command()

std::string args_to_command ( int argc,
char ** argv )
inline

Definition at line 76 of file defs.h.

◆ CharArray_Delete()

void CharArray_Delete ( char * object)
inline

Definition at line 100 of file defs.h.

◆ file_exists()

bool file_exists ( const std::string & path)
inline

Definition at line 53 of file defs.h.

◆ is_directory()

bool is_directory ( const std::string & path)
inline

Definition at line 65 of file defs.h.

◆ is_file()

bool is_file ( const std::string & path)
inline

Definition at line 59 of file defs.h.

◆ join_paths()

std::string join_paths ( const std::string & a,
const std::string & b )
inline

Definition at line 42 of file defs.h.

Variable Documentation

◆ SEP

const char SEP = '/'

Definition at line 39 of file defs.h.