Class | CWrp::Cli
In: | ../lib/roller.rb
Parent: | Object

Command line interface for processing 4WVR/8WVR files.

### Methods

confirm_overwrite export_file_name find_config_file process timed_block

### Constants

EXT_CONFIG | = | '.yaml'
DEFAULT_EXPORT_OBJECTS | = | '_objects.txt'
DEFAULT_EXPORT_WRP | = | '_export.wrp'
DEFAULT_EXPORT_XYZ | = | '.xyz'
DEFAULT_EXPORT_MASK | = | '_mask.png'
DEFAULT_EXPORT_UNIQUE_OBJECTS | = | '_unique_objects.txt'
DEFAULT_SATELLITE_CELL_SIZE | = | 2
DESC_WIDTH | = | 42

### Public Class methods

export_file_name(file_name, base_name, default)

Finds the file to export, adding extension if missing. Alternatively, just use a default filename based on the base name of the wrp.

process()

Use command line options to process a WRP file.

Returns TRUE if files were processed properly. FALSE on error.

### Protected Class methods

confirm_overwrite(filename)

Returns true if user allows file to be overwritten (or if file doesn‘t exist).

find_config_file(filename)

Finds default yaml files. Returns the filename to use, otherwise nil if no file si found.

timed_block(&block)

Run a block and output time it took.

[Validate]