Enhancement #964

Reduce redundancy between call and send tools

Added by J. Moringen about 9 years ago. Updated over 6 years ago.

Status:ResolvedStart date:03/19/2012
Priority:NormalDue date:
Assignee:J. Moringen% Done:

100%

Category:Common Lisp Tools
Target version:rsb-0.11

Description

The call and send tools share some code for constructing call arguments and event payloads respectively.


Related issues

Related to Robotics Service Bus - Support #2040: rsb-sendcl doesn't allow to send raw strings / missing or... Resolved 10/06/2014

Associated revisions

Revision 20f00641
Added by J. Moringen over 6 years ago

Added functions for event construction in common/event.lisp

fixes #964, refs #2040

  • common/event.lisp: new file; contains functions for constructing events
    by parsing payload and meta-data specifications
  • common/package.lisp (package rsb.common): added exported symbols
    parse-payload-spec, parse-meta-data, parse-timestamp and parse-cause
  • call/main.lisp (make-help-string): adapted to extended payload parsing
    rules
    (make-examples-string): likewise
    (parse-argument): removed; `parse-payload-spec' is used instead
    (main): call `parse-payload-spec' instead of `parse-argument'
  • send/main.lisp (make-help-string): adapted to extended payload parsing
    rules
    (make-examples-string): likewise
    (parse-event-spec): removed; `parse-payload-spec' is used instead
    (parse-pair): removed; moved to common/event.lisp
    (parse-meta-data): likewise
    (parse-timestamp): likewise
    (parse-cause): likewise
    (main): call `parse-payload-spec' instead of `parse-event-spec'
  • cl-rsb-common.asd (header): updated copyright
    (system cl-rsb-common): added file
  • CMakeLists.txt: added test cases for executing send and call binaries
    with different kinds of payload specifications

Revision 3b14041c
Added by J. Moringen over 6 years ago

Describe extended file and stdin syntax in {call,send}.rst

refs #964, refs #2040

  • call.rst (Description): explain extended file and standard input
    syntax
    (Examples): added examples of the above
  • send.rst (Description): similar
    (Examples): similar

Revision 843459a9
Added by J. Moringen over 6 years ago

Fix example file used in tests in CMakeLists.txt

refs #964

  • CMakeLists.txt: use the current CMake list file instead of /etc/motd
    which may not always exist

History

#1 Updated by J. Moringen almost 9 years ago

  • Target version changed from rsb-0.7 to rsb-0.9

#2 Updated by J. Moringen about 8 years ago

  • Target version changed from rsb-0.9 to rsb-0.10

#3 Updated by J. Moringen over 7 years ago

  • Target version changed from rsb-0.10 to rsb-0.11

#4 Updated by J. Moringen over 6 years ago

  • Related to Support #2040: rsb-sendcl doesn't allow to send raw strings / missing or poor documentation? added

#5 Updated by J. Moringen over 6 years ago

  • Status changed from New to In Progress

#6 Updated by J. Moringen over 6 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF