Skip to content

Class AIAC::Utils::HoleToolheadAxisExporter

ClassList > AIAC > Utils > HoleToolheadAxisExporter

Public Functions

Type Name
void ExportCoordinates ()
Export and write the hole and toolhead coordinates.
void ExportHoleAxis ()
Export the hole coordinates.
void ExportToolheadAxis ()
Export the toolhead coordinates.
std::string GetCurrentTimestamp ()
Get the current timestamp.
HoleToolheadAxisExporter (const std::string & basePath)
void WriteBufferToFile ()
Write the buffer to a file.
void WriteCoordToBuffer (const std::string & itemType, std::string itemName, const std::string & pointType, std::shared_ptr< GOPoint > goPoint)
Write the coordinates to a .log file.
~HoleToolheadAxisExporter () = default

Public Functions Documentation

function ExportCoordinates

Export and write the hole and toolhead coordinates.

void AIAC::Utils::HoleToolheadAxisExporter::ExportCoordinates () 


function ExportHoleAxis

Export the hole coordinates.

void AIAC::Utils::HoleToolheadAxisExporter::ExportHoleAxis () 


function ExportToolheadAxis

Export the toolhead coordinates.

void AIAC::Utils::HoleToolheadAxisExporter::ExportToolheadAxis () 


function GetCurrentTimestamp

Get the current timestamp.

std::string AIAC::Utils::HoleToolheadAxisExporter::GetCurrentTimestamp () 

Returns:

A string representing the current timestamp


function HoleToolheadAxisExporter

explicit AIAC::Utils::HoleToolheadAxisExporter::HoleToolheadAxisExporter (
    const std::string & basePath
) 

function WriteBufferToFile

Write the buffer to a file.

void AIAC::Utils::HoleToolheadAxisExporter::WriteBufferToFile () 

The data is written in the following format: ItemType,ItemName,PointType,X,Y,Z


function WriteCoordToBuffer

Write the coordinates to a .log file.

void AIAC::Utils::HoleToolheadAxisExporter::WriteCoordToBuffer (
    const std::string & itemType,
    std::string itemName,
    const std::string & pointType,
    std::shared_ptr< GOPoint > goPoint
) 

Parameters:

  • itemType Type of the item (toolhead or hole)
  • pointType Type of the point (start or end)
  • goPoint Pointer to the GOPoint object to get the coordinates from

function ~HoleToolheadAxisExporter

AIAC::Utils::HoleToolheadAxisExporter::~HoleToolheadAxisExporter () = default


The documentation for this class was generated from the following file src/utils/HoleToolheadAxisExporter.h