|
static void | write (const std::string &filename, const std::vector< Plan > &planlist, const std::vector< PolyPath > &polylist, bool tcpColumns) |
|
|
void | writeHeader (bool write_tcp, bool ll) |
|
|
ErrorLog | error |
|
SeparatedOutput | output |
|
bool | latlon |
|
bool | first_line |
|
bool | display_units |
|
bool | tcpColumns |
|
bool | polyColumns |
|
bool | trkgsvs |
|
int | precision |
|
int | latLonExtraPrecision |
|
int | lines |
|
std::string | fname |
|
std::ofstream | fw |
|
PolyPath::PathMode | mode |
|
◆ PlanWriter()
larcfm::PlanWriter::PlanWriter |
( |
| ) |
|
◆ addComment()
void larcfm::PlanWriter::addComment |
( |
const std::string & |
comment | ) |
|
Adds a comment line to the file.
- Parameters
-
◆ clearPolyPathMode()
void larcfm::PlanWriter::clearPolyPathMode |
( |
| ) |
|
Indicate that no polygons will be output (the default).
◆ getMessage()
std::string larcfm::PlanWriter::getMessage |
( |
| ) |
|
|
virtual |
Return a string representation of any errors or warnings. Calling this method will clear any messages and reset both the error and warning status to none.
- Returns
- error and warning messages. If there are no messages, an empty string is returned.
Implements larcfm::ErrorReporter.
◆ getMessageNoClear()
std::string larcfm::PlanWriter::getMessageNoClear |
( |
| ) |
const |
|
virtual |
Return a string representation of any errors or warnings. Calling this method will not clear the error or warning status (i.e., hasError() will return the same value before and after this call.)
- Returns
- error and warning messages. If there are no messages, an empty string is returned.
Implements larcfm::ErrorReporter.
◆ hasError()
bool larcfm::PlanWriter::hasError |
( |
| ) |
const |
|
virtual |
◆ hasMessage()
bool larcfm::PlanWriter::hasMessage |
( |
| ) |
const |
|
virtual |
Does this object have an error or a warning?
- Returns
- true if there is an error or warning.
Implements larcfm::ErrorReporter.
◆ open()
void larcfm::PlanWriter::open |
( |
const std::string & |
filename | ) |
|
◆ setColumnDelimiterComma()
void larcfm::PlanWriter::setColumnDelimiterComma |
( |
| ) |
|
Sets the column delimiter to a comma. This method can only be used before the first "writeState" method.
◆ setColumnDelimiterSpace()
void larcfm::PlanWriter::setColumnDelimiterSpace |
( |
| ) |
|
Sets the column delimiter to a space. This method can only be used before the first "writeState" method.
◆ setColumnDelimiterTab()
void larcfm::PlanWriter::setColumnDelimiterTab |
( |
| ) |
|
Sets the column delimiter to a tab. This method can only be used before the first "writeState" method.
◆ setContainmentParameter()
void larcfm::PlanWriter::setContainmentParameter |
( |
const std::string & |
s | ) |
|
Indicate which polygons are considered containment (geofences). This must be called before the first write command, which ignores stored containment information.
◆ setParameters()
void larcfm::PlanWriter::setParameters |
( |
const ParameterData & |
pr | ) |
|
Additively set parameters. (This does not delete existing parameters, but will overwrite them.)
- Parameters
-
◆ setPlanParameters()
void larcfm::PlanWriter::setPlanParameters |
( |
const std::vector< Plan > & |
plans | ) |
|
Sets parameters for the listed plans. Currently this consists of the "note" field for each plan, if present.
- Parameters
-
◆ setPolyPathMode()
void larcfm::PlanWriter::setPolyPathMode |
( |
PolyPath::PathMode |
m | ) |
|
Indicate polygons will be output and set the path mode to be output. This must be called before the first write command, otherwise any attempts to write a polygon will result in a warning and no polygon written. The default mode is PolyPath.PathMode.AVG_VEL.
- Parameters
-
◆ size()
int larcfm::PlanWriter::size |
( |
| ) |
const |
Return the number of lines added to the file
- Returns
- size
The documentation for this class was generated from the following files:
- Modules/ACCoRD/inc/PlanWriter.h
- Modules/ACCoRD/src/PlanWriter.cpp