Skip to content

[C++] Generate message pretty printers#683

Merged
tmontgomery merged 1 commit intoaeron-io:masterfrom
agmt:to_string
May 28, 2019
Merged

[C++] Generate message pretty printers#683
tmontgomery merged 1 commit intoaeron-io:masterfrom
agmt:to_string

Conversation

@agmt
Copy link
Contributor

@agmt agmt commented May 28, 2019

To solve issue: #178
For GeneratedStubExample it generates json-like string: {"Name": "Car", "sbeTemplateId": 1, "serialNumber": 1234, "modelYear": 2013, "available": "T", "code": "A", "someNumbers": [0,1,2,3], "vehicleCode": "abcdef", "extras": ["sportsPack","cruiseControl"], "discountedModel": "C", "engine": {"capacity": 2000, "numCylinders": 4, "manufacturerCode": "123", "efficiency": 0, "boosterEnabled": "F", "booster": {"BoostType": "NITROUS", "horsePower": 200}}, "fuelFigures": [{"speed": 30, "mpg": 35.9, "usageDescription": "Urban Cycle"}, {"speed": 55, "mpg": 49, "usageDescription": "Combined Cycle"}, {"speed": 75, "mpg": 40, "usageDescription": "Highway Cycle"}], "performanceFigures": [{"octaneRating": 95, "acceleration": [{"mph": 30, "seconds": 4}, {"mph": 60, "seconds": 7.5}, {"mph": 100, "seconds": 12.2}]}, {"octaneRating": 99, "acceleration": [{"mph": 30, "seconds": 3.8}, {"mph": 60, "seconds": 7.1}, {"mph": 100, "seconds": 11.8}]}], "manufacturer": "Honda", "model": "Civic VTi", "activationCode": "deadbeef"}

@tmontgomery tmontgomery merged commit ce20691 into aeron-io:master May 28, 2019
@agmt agmt deleted the to_string branch March 6, 2020 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants