CARLA
Functions
CarlaRecorderHelpers.h File Reference
#include <fstream>
#include <vector>
+ Include dependency graph for CarlaRecorderHelpers.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

std::string GetRecorderFilename (std::string Filename)
 
void ReadFString (std::ifstream &InFile, FString &OutObj)
 
void ReadFVector (std::ifstream &InFile, FVector &OutObj)
 
template<typename T >
void ReadStdVector (std::ifstream &InFile, std::vector< T > &OutVec)
 
template<typename T >
void ReadTArray (std::ifstream &InFile, TArray< T > &OutVec)
 
template<typename T >
void ReadValue (std::ifstream &InFile, T &OutObj)
 
void WriteFString (std::ofstream &OutFile, const FString &InObj)
 
void WriteFVector (std::ofstream &OutFile, const FVector &InObj)
 
template<typename T >
void WriteStdVector (std::ofstream &OutFile, const std::vector< T > &InVec)
 
template<typename T >
void WriteTArray (std::ofstream &OutFile, const TArray< T > &InVec)
 
template<typename T >
void WriteValue (std::ofstream &OutFile, const T &InObj)
 

Function Documentation

◆ GetRecorderFilename()

std::string GetRecorderFilename ( std::string  Filename)

Definition at line 16 of file CarlaRecorderHelpers.cpp.

Referenced by CarlaRecorderQuery::QueryBlocked(), CarlaRecorderQuery::QueryCollisions(), CarlaRecorderQuery::QueryInfo(), CarlaReplayer::ReplayFile(), and ACarlaRecorder::Start().

+ Here is the caller graph for this function:

◆ ReadFString()

void ReadFString ( std::ifstream &  InFile,
FString &  OutObj 
)

Definition at line 83 of file CarlaRecorderHelpers.cpp.

References CarlaRecorderHelperBuffer.

Referenced by CarlaRecorderInfo::Read(), CarlaRecorderEventAdd::Read(), and ReadTArray().

+ Here is the caller graph for this function:

◆ ReadFVector()

void ReadFVector ( std::ifstream &  InFile,
FVector &  OutObj 
)

Definition at line 66 of file CarlaRecorderHelpers.cpp.

Referenced by CarlaRecorderBoundingBox::Read(), CarlaRecorderPosition::Read(), CarlaRecorderKinematics::Read(), CarlaRecorderEventAdd::Read(), and ReadTArray().

+ Here is the caller graph for this function:

◆ ReadStdVector()

template<typename T >
void ReadStdVector ( std::ifstream &  InFile,
std::vector< T > &  OutVec 
)

Definition at line 66 of file CarlaRecorderHelpers.h.

Referenced by CarlaRecorderPhysicsControl::Read().

+ Here is the caller graph for this function:

◆ ReadTArray()

template<typename T >
void ReadTArray ( std::ifstream &  InFile,
TArray< T > &  OutVec 
)

Definition at line 80 of file CarlaRecorderHelpers.h.

References ReadFString(), and ReadFVector().

+ Here is the call graph for this function:

◆ ReadValue()

template<typename T >
void ReadValue ( std::ifstream &  InFile,
T &  OutObj 
)

Definition at line 60 of file CarlaRecorderHelpers.h.

Referenced by CarlaRecorderPhysicsControl::Read(), and CarlaRecorderTrafficLightTime::Read().

+ Here is the caller graph for this function:

◆ WriteFString()

void WriteFString ( std::ofstream &  OutFile,
const FString &  InObj 
)

Definition at line 51 of file CarlaRecorderHelpers.cpp.

Referenced by CarlaRecorderInfo::Write(), CarlaRecorderEventAdd::Write(), and WriteTArray().

+ Here is the caller graph for this function:

◆ WriteFVector()

void WriteFVector ( std::ofstream &  OutFile,
const FVector &  InObj 
)

Definition at line 37 of file CarlaRecorderHelpers.cpp.

Referenced by CarlaRecorderBoundingBox::Write(), CarlaRecorderPosition::Write(), CarlaRecorderKinematics::Write(), CarlaRecorderEventAdd::Write(), and WriteTArray().

+ Here is the caller graph for this function:

◆ WriteStdVector()

template<typename T >
void WriteStdVector ( std::ofstream &  OutFile,
const std::vector< T > &  InVec 
)

Definition at line 27 of file CarlaRecorderHelpers.h.

Referenced by CarlaRecorderPhysicsControl::Write().

+ Here is the caller graph for this function:

◆ WriteTArray()

template<typename T >
void WriteTArray ( std::ofstream &  OutFile,
const TArray< T > &  InVec 
)

Definition at line 37 of file CarlaRecorderHelpers.h.

References WriteFString(), and WriteFVector().

+ Here is the call graph for this function:

◆ WriteValue()

template<typename T >
void WriteValue ( std::ofstream &  OutFile,
const T &  InObj 
)

Definition at line 21 of file CarlaRecorderHelpers.h.

Referenced by CarlaRecorderPhysicsControl::Write(), and CarlaRecorderTrafficLightTime::Write().

+ Here is the caller graph for this function: