YARP
Yet Another Robot Platform
YarpLoggerFiles.cpp File Reference
#include <iostream>
#include <cstring>
#include <string>
#include <sstream>
#include <cstdio>
#include <fstream>
#include <iterator>
#include <yarp/os/RpcClient.h>
#include <yarp/os/SystemClock.h>
#include <yarp/logger/YarpLogger.h>
+ Include dependency graph for YarpLoggerFiles.cpp:

Go to the source code of this file.

Functions

void SaveToFile (std::ofstream &file, unsigned int data)
 
void SaveToFile (std::ofstream &file, std::string data)
 
void LoadFromFile (std::ifstream &file, std::string &data)
 
void LoadFromFile (std::ifstream &file, unsigned int &data)
 
std::streamoff get_tag (std::ifstream &file, const char *tag)
 

Variables

std::string start_string = "<#STRING_START#>"
 
std::string end_string = "<#STRING_END#>"
 

Function Documentation

◆ get_tag()

std::streamoff get_tag ( std::ifstream &  file,
const char *  tag 
)

Definition at line 143 of file YarpLoggerFiles.cpp.

◆ LoadFromFile() [1/2]

void LoadFromFile ( std::ifstream &  file,
std::string &  data 
)

Definition at line 67 of file YarpLoggerFiles.cpp.

◆ LoadFromFile() [2/2]

void LoadFromFile ( std::ifstream &  file,
unsigned int &  data 
)

Definition at line 73 of file YarpLoggerFiles.cpp.

◆ SaveToFile() [1/2]

void SaveToFile ( std::ofstream &  file,
std::string  data 
)

Definition at line 55 of file YarpLoggerFiles.cpp.

◆ SaveToFile() [2/2]

void SaveToFile ( std::ofstream &  file,
unsigned int  data 
)

Definition at line 50 of file YarpLoggerFiles.cpp.

Variable Documentation

◆ end_string

std::string end_string = "<#STRING_END#>"

Definition at line 79 of file YarpLoggerFiles.cpp.

◆ start_string

std::string start_string = "<#STRING_START#>"

Definition at line 78 of file YarpLoggerFiles.cpp.