Agora  1.2.0
Agora project
utils.cpp File Reference
#include "includes.h"
#include <sys/types.h>
#include <dirent.h>
Include dependency graph for utils.cpp:

Functions

void prepare_logdir ()
 
std::string file_contents (const std::string &filename)
 
std::size_t count_lines (const std::string &filename)
 
void require_message_count (const std::string &filename, const std::size_t messages)
 
std::size_t get_filesize (const std::string &filename)
 
bool ends_with (std::string const &value, std::string const &ending)
 
std::size_t count_files (const std::string &folder)
 

Function Documentation

◆ count_files()

std::size_t count_files ( const std::string &  folder)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ count_lines()

std::size_t count_lines ( const std::string &  filename)
Here is the caller graph for this function:

◆ ends_with()

bool ends_with ( std::string const &  value,
std::string const &  ending 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ file_contents()

std::string file_contents ( const std::string &  filename)
Here is the caller graph for this function:

◆ get_filesize()

std::size_t get_filesize ( const std::string &  filename)

◆ prepare_logdir()

void prepare_logdir ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ require_message_count()

void require_message_count ( const std::string &  filename,
const std::size_t  messages 
)
Here is the call graph for this function:
Here is the caller graph for this function: