]> git.sesse.net Git - casparcg/blobdiff - protocol/util/ClientInfo.h
set svn:eol-style native on .h and .cpp files
[casparcg] / protocol / util / ClientInfo.h
index 0b6412ffacaf76e6ef478f48e29809f7bfdd6a5f..f28a9cc71523cbbe7dfafc48d1f7bef9770ecc1a 100644 (file)
@@ -1,58 +1,58 @@
-/*\r
-* Copyright (c) 2011 Sveriges Television AB <info@casparcg.com>\r
-*\r
-* This file is part of CasparCG (www.casparcg.com).\r
-*\r
-* CasparCG is free software: you can redistribute it and/or modify\r
-* it under the terms of the GNU General Public License as published by\r
-* the Free Software Foundation, either version 3 of the License, or\r
-* (at your option) any later version.\r
-*\r
-* CasparCG is distributed in the hope that it will be useful,\r
-* but WITHOUT ANY WARRANTY; without even the implied warranty of\r
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
-* GNU General Public License for more details.\r
-*\r
-* You should have received a copy of the GNU General Public License\r
-* along with CasparCG. If not, see <http://www.gnu.org/licenses/>.\r
-*\r
-* Author: Nicklas P Andersson\r
-*/\r
-\r
-#pragma once\r
-\r
-#include <memory>\r
-#include <string>\r
-#include <iostream>\r
-\r
-#include <common/log.h>\r
-\r
-namespace caspar { namespace IO {\r
-\r
-class ClientInfo \r
-{\r
-protected:\r
-       ClientInfo(){}\r
-\r
-public:\r
-       virtual ~ClientInfo(){}\r
-\r
-       virtual void Send(const std::wstring& data) = 0;\r
-       virtual void Disconnect() = 0;\r
-       virtual std::wstring print() const = 0;\r
-\r
-       std::wstring            currentMessage_;\r
-};\r
-typedef std::shared_ptr<ClientInfo> ClientInfoPtr;\r
-\r
-struct ConsoleClientInfo : public caspar::IO::ClientInfo \r
-{\r
-       void Send(const std::wstring& data)\r
-       {\r
-               std::wcout << (L"#" + caspar::log::replace_nonprintable_copy(data, L'?'));\r
-       }\r
-       void Disconnect(){}\r
-       virtual std::wstring print() const {return L"Console";}\r
-};\r
-\r
-}}\r
+/*
+* Copyright (c) 2011 Sveriges Television AB <info@casparcg.com>
+*
+* This file is part of CasparCG (www.casparcg.com).
+*
+* CasparCG is free software: you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation, either version 3 of the License, or
+* (at your option) any later version.
+*
+* CasparCG is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with CasparCG. If not, see <http://www.gnu.org/licenses/>.
+*
+* Author: Nicklas P Andersson
+*/
+
+#pragma once
+
+#include <memory>
+#include <string>
+#include <iostream>
+
+#include <common/log.h>
+
+namespace caspar { namespace IO {
+
+class ClientInfo 
+{
+protected:
+       ClientInfo(){}
+
+public:
+       virtual ~ClientInfo(){}
+
+       virtual void Send(const std::wstring& data) = 0;
+       virtual void Disconnect() = 0;
+       virtual std::wstring print() const = 0;
+
+       std::wstring            currentMessage_;
+};
+typedef std::shared_ptr<ClientInfo> ClientInfoPtr;
+
+struct ConsoleClientInfo : public caspar::IO::ClientInfo 
+{
+       void Send(const std::wstring& data)
+       {
+               std::wcout << (L"#" + caspar::log::replace_nonprintable_copy(data, L'?'));
+       }
+       void Disconnect(){}
+       virtual std::wstring print() const {return L"Console";}
+};
+
+}}