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
9 changes: 7 additions & 2 deletions source/examples/relocation/relocation_read.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@
#include <sio/definitions.h>
#include <sio/exception.h>
#include <sio/api.h>

#include <sio/buffer.h>
// -- sio examples headers
#include <sioexamples/data.h>
#include <sioexamples/blocks.h>

#include <iostream>
#include <memory>
#include <string>


/**
* This example illustrate how to read a simple data structure.
* The sio block reading function is available in sioexamples/blocks.h
Expand Down Expand Up @@ -79,4 +84,4 @@ int main( int argc, char **argv ) {
}

return 0 ;
}
}
8 changes: 6 additions & 2 deletions source/examples/relocation/relocation_write.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@
#include <sio/definitions.h>
#include <sio/exception.h>
#include <sio/api.h>

#include <sio/buffer.h>
// -- sio examples headers
#include <sioexamples/data.h>
#include <sioexamples/blocks.h>
#include <iostream>
#include <memory>
#include <string>


/**
* This example illustrate how to write a simple data structure.
Expand Down Expand Up @@ -85,4 +89,4 @@ int main( int argc, char **argv ) {
}

return 0 ;
}
}
8 changes: 6 additions & 2 deletions source/examples/simple/simple_read.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@
#include <sio/definitions.h>
#include <sio/exception.h>
#include <sio/api.h>

#include <sio/buffer.h>
// -- sio examples headers
#include <sioexamples/data.h>
#include <sioexamples/blocks.h>
#include <iostream>
#include <memory>
#include <string>


/**
* This example illustrate how to read a simple data structure.
Expand Down Expand Up @@ -78,4 +82,4 @@ int main( int argc, char **argv ) {
}

return 0 ;
}
}
8 changes: 6 additions & 2 deletions source/examples/simple/simple_write.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@
#include <sio/definitions.h>
#include <sio/exception.h>
#include <sio/api.h>

#include <sio/buffer.h>
// -- sio examples headers
#include <sioexamples/data.h>
#include <sioexamples/blocks.h>
#include <iostream>
#include <memory>
#include <string>


/**
* This example illustrate how to write a simple data structure.
Expand Down Expand Up @@ -75,4 +79,4 @@ int main( int argc, char **argv ) {
}

return 0 ;
}
}
8 changes: 6 additions & 2 deletions source/examples/zlib/zlib_read.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@
#include <sio/exception.h>
#include <sio/api.h>
#include <sio/compression/zlib.h>

#include <sio/buffer.h>
// -- sio examples headers
#include <sioexamples/data.h>
#include <sioexamples/blocks.h>
#include <iostream>
#include <memory>
#include <string>


/**
* This example illustrate how to read a simple data structure and
Expand Down Expand Up @@ -92,4 +96,4 @@ int main( int argc, char **argv ) {
}

return 0 ;
}
}
8 changes: 6 additions & 2 deletions source/examples/zlib/zlib_write.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@
#include <sio/exception.h>
#include <sio/api.h>
#include <sio/compression/zlib.h>

#include <sio/buffer.h>
// -- sio examples headers
#include <sioexamples/data.h>
#include <sioexamples/blocks.h>
#include <iostream>
#include <memory>
#include <string>


/**
* This example illustrate how to write a simple data structure and
Expand Down Expand Up @@ -85,4 +89,4 @@ int main( int argc, char **argv ) {
}

return 0 ;
}
}
4 changes: 2 additions & 2 deletions source/include/sio/api.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
// -- sio headers
#include <sio/definitions.h>
#include <sio/buffer.h>

// -- std headers
#include <memory>
#include <utility>
#include <string>
#include <sstream>
#include <vector>
#include <algorithm>
#include <cstddef>

namespace sio {

Expand Down
3 changes: 2 additions & 1 deletion source/include/sio/buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

// -- sio headers
#include <sio/definitions.h>

// -- std headers
#include <limits>
#include <cstddef>
#include <vector>

namespace sio {

Expand Down
3 changes: 3 additions & 0 deletions source/include/sio/io_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
// -- sio headers
#include <sio/definitions.h>
#include <sio/buffer.h>
#include <cstddef>
#include <string>
#include <vector>

namespace sio {

Expand Down
1 change: 1 addition & 0 deletions source/include/sio/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

// -- sio headers
#include <sio/definitions.h>
#include <cstdint>

namespace sio {

Expand Down
7 changes: 4 additions & 3 deletions source/main/sio-dump.cc
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
// -- sio headers
#include <sio/definitions.h>
#include <sio/buffer.h>
#include <sio/api.h>
#include <sio/compression/zlib.h>

#include <sio/exception.h>
// -- std headers
#include <limits>
#include <vector>
#include <string>
#include <algorithm>
#include <iterator>
#include <iostream>
#include <cstdlib>
#include <stdexcept>



constexpr const char *USAGE = R"(Usage: sio-dump [-d/--detailed] [-n NRECORDS] [-m SKIPRECORDS] siofile)";
Expand Down
9 changes: 7 additions & 2 deletions source/src/api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,18 @@
#include <sio/compression/zlib.h>
#include <sio/block.h>
#include <sio/version.h>

#include <sio/definitions.h>
// -- std headers
#include <iostream>
#include <iomanip>
#include <limits>
#include <string>
#include <algorithm>
#include <memory>
#include <cstddef>
#include <string>
#include <vector>
#include <utility>


namespace sio {

Expand Down
4 changes: 3 additions & 1 deletion source/src/block.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
#include <sio/block.h>
#include <sio/exception.h>

#include <sio/definitions.h>

namespace sio {

block::block( const std::string &nam, sio::version_type vers ) :
Expand All @@ -24,4 +26,4 @@ namespace sio {
return _version ;
}

}
}
6 changes: 5 additions & 1 deletion source/src/buffer.cc
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
// -- sio headers
#include <sio/buffer.h>
#include <sio/exception.h>

#include <sio/definitions.h>
// -- std headers
#include <sstream>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <utility>


namespace sio {

Expand Down
6 changes: 3 additions & 3 deletions source/src/compression/zlib.cc
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#include <sio/compression/zlib.h>

// -- sio headers
#include <sio/buffer.h>
#include <sio/exception.h>

#include <sio/definitions.h>
// -- zlib headers
#include <zlib.h>

#include <zconf.h>
// -- std headers
#include <sstream>


namespace sio {

void zlib_compression::set_level( int level ) {
Expand Down
5 changes: 5 additions & 0 deletions source/src/io_device.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
// -- sio headers
#include <sio/io_device.h>
#include <sio/api.h>
#include <sio/buffer.h>
#include <sio/definitions.h>
#include <sio/exception.h>
#include <utility>


namespace sio {

Expand Down
2 changes: 2 additions & 0 deletions source/src/memcpy.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// -- sio headers
#include <sio/memcpy.h>
#include <sio/definitions.h>


namespace sio {

Expand Down