CARLA
Functions
CarlaRecorderHelpers.h File Reference
#include <sstream>
#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::istream &InFile, FString &OutObj)
 
void ReadFVector (std::istream &InFile, FVector &OutObj)
 
template<typename T >
void ReadStdVector (std::istream &InFile, std::vector< T > &OutVec)
 
template<typename T >
void ReadTArray (std::istream &InFile, TArray< T > &OutVec)
 
void ReadTransform (std::ifstream &InFile, FTransform &OutObj)
 
template<typename T >
void ReadValue (std::istream &InFile, T &OutObj)
 
void WriteFString (std::ostream &OutFile, const FString &InObj)
 
void WriteFTransform (std::ofstream &OutFile, const FTransform &InObj)
 
void WriteFVector (std::ostream &OutFile, const FVector &InObj)
 
template<typename T >
void WriteStdVector (std::ostream &OutFile, const std::vector< T > &InVec)
 
template<typename T >
void WriteTArray (std::ostream &OutFile, const TArray< T > &InVec)
 
template<typename T >
void WriteValue (std::ostream &OutFile, const T &InObj)
 

Function Documentation

◆ GetRecorderFilename()

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

Definition at line 17 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::istream &  InFile,
FString &  OutObj 
)

Definition at line 86 of file CarlaRecorderHelpers.cpp.

References CarlaRecorderHelperBuffer.

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

+ Here is the caller graph for this function:

◆ ReadFVector()

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

Definition at line 68 of file CarlaRecorderHelpers.cpp.

Referenced by FDenseTile::InitializeTile(), CarlaRecorderBoundingBox::Read(), CarlaRecorderKinematics::Read(), CarlaRecorderPosition::Read(), CarlaRecorderWalkerBones::Read(), CarlaRecorderEventAdd::Read(), ReadFTransform(), and ReadTArray().

+ Here is the caller graph for this function:

◆ ReadStdVector()

template<typename T >
void ReadStdVector ( std::istream &  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::istream &  InFile,
TArray< T > &  OutVec 
)

Definition at line 80 of file CarlaRecorderHelpers.h.

References ReadFString(), ReadFVector(), and ReadTransform().

+ Here is the call graph for this function:

◆ ReadTransform()

void ReadTransform ( std::ifstream &  InFile,
FTransform &  OutObj 
)

Referenced by ReadTArray().

+ Here is the caller graph for this function:

◆ ReadValue()

template<typename T >
void ReadValue ( std::istream &  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::ostream &  OutFile,
const FString &  InObj 
)

Definition at line 53 of file CarlaRecorderHelpers.cpp.

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

+ Here is the caller graph for this function:

◆ WriteFTransform()

void WriteFTransform ( std::ofstream &  OutFile,
const FTransform &  InObj 
)

Definition at line 46 of file CarlaRecorderHelpers.cpp.

References WriteFVector().

Referenced by WriteTArray().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ WriteFVector()

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

Definition at line 38 of file CarlaRecorderHelpers.cpp.

Referenced by FSparseHighDetailMap::SaveMap(), FSparseHighDetailMap::UpdateMaps(), CarlaRecorderBoundingBox::Write(), CarlaRecorderKinematics::Write(), CarlaRecorderPosition::Write(), CarlaRecorderWalkerBones::Write(), CarlaRecorderEventAdd::Write(), WriteFTransform(), and WriteTArray().

+ Here is the caller graph for this function:

◆ WriteStdVector()

template<typename T >
void WriteStdVector ( std::ostream &  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::ostream &  OutFile,
const TArray< T > &  InVec 
)

Definition at line 37 of file CarlaRecorderHelpers.h.

References WriteFString(), WriteFTransform(), and WriteFVector().

+ Here is the call graph for this function:

◆ WriteValue()

template<typename T >
void WriteValue ( std::ostream &  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: