diff --git a/File/File.hpp b/File/File.hpp index 83f9f52..1541f7a 100644 --- a/File/File.hpp +++ b/File/File.hpp @@ -1,10 +1,26 @@ -// -// File.cpp -// File -// -// Created by Daniel Illescas Romero on 25/06/2017. -// Copyright © 2017 Daniel Illescas Romero. All rights reserved. -// +/* + The MIT License (MIT) + + Copyright (c) 2017 Daniel Illescas Romero + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. +*/ #pragma once @@ -73,7 +89,7 @@ namespace evt { } template ::value>::type> - Type readFromBinary(size_t size) { + Type readFromBinary(std::size_t size) { open(std::ios::in | std::ios::binary); std::unique_ptr readTextChar(new char[size]); @@ -82,7 +98,7 @@ namespace evt { return readTextChar.get(); } - void seekPosition(size_t offsetPosition, std::ios_base::seekdir position = std::ios::beg) { + void seekPosition(std::size_t offsetPosition, std::ios_base::seekdir position = std::ios::beg) { writeAtEnd = false; fileStream.seekp(offsetPosition, position); } diff --git a/LICENCE b/LICENCE index 6b84d64..1f53d98 100644 --- a/LICENCE +++ b/LICENCE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2016 HDxDaniel +Copyright (c) 2017 Daniel Illescas Romero Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal