This is a small sample showing serialization of a data structure containing shared_ptr. The shared_ptr contains a pointer to an interface class. The code was causing a lot of Cereal errors until a pure virtual method was added to the interface class. Just saying.. maybe it helps..
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package csvdata | |
// csvdata complements the csv package by allowing you to map a custom structure to | |
// the columns of data in a CSV file. The struct needs to be annotated so that each | |
// field can match a column in the data | |
// | |
// type Person struct { | |
// FirstName string `field:"First Name"` | |
// Second_Name string | |
// Age int | |
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Script started on Mon Dec 8 19:26:11 2014 | |
]0;root@ce:~/community-edition-setup-master[?1034hGLUU.[root@ce community-edition-setup-master]# ./setup.py | |
Installing Gluu Server... | |
For more info see: | |
./setup.log | |
./setup_error.log | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
canIpForward: false | |
creationTimestamp: '2014-11-21T07:17:41.101-08:00' | |
disks: | |
- autoDelete: true | |
boot: true | |
deviceName: persistent-disk-0 | |
index: 0 | |
interface: SCSI | |
kind: compute#attachedDisk | |
mode: READ_WRITE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
gcloud compute instances create imaginout \ | |
--image container-vm-v20140925 \ | |
--image-project google-containers \ | |
--metadata-from-file google-container-manifest=containers.yaml \ | |
--tags http-server \ | |
--zone us-central1-a \ | |
--machine-type f1-micro |