Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ create `playground.cc` that looks like this:

int main() {
std::string filename = "playground.bin";
std::remove(filename.c_str());

{
playground::binary::MyProtocolWriter writer(filename);
Expand Down Expand Up @@ -246,6 +247,7 @@ HDF5 file. This requires only a few modifications to our code:
int main() {
- std::string filename = "playground.bin";
+ std::string filename = "playground.h5";
std::remove(filename.c_str());

{
- playground::binary::MyProtocolWriter writer(filename);
Expand Down
7 changes: 6 additions & 1 deletion smoketest/cpp/smoketest.cc
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#include <iostream>

#include "generated/hdf5/protocols.h"

int main() {
smoketest::hdf5::MyProtocolWriter w("smoketest.h5");
std::string filename = "smoketest.h5";
std::remove(filename.c_str());

smoketest::hdf5::MyProtocolWriter w(filename);

w.WriteHeader({"123"});

Expand Down