OSVR Framework (Internal Development Docs)
0.6-1962-g59773924
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
StringLiteralFileToString.h
Go to the documentation of this file.
1
13
// Copyright 2015 Sensics, Inc.
14
//
15
// Licensed under the Apache License, Version 2.0 (the "License");
16
// you may not use this file except in compliance with the License.
17
// You may obtain a copy of the License at
18
//
19
// http://www.apache.org/licenses/LICENSE-2.0
20
//
21
// Unless required by applicable law or agreed to in writing, software
22
// distributed under the License is distributed on an "AS IS" BASIS,
23
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24
// See the License for the specific language governing permissions and
25
// limitations under the License.
26
27
#ifndef INCLUDED_StringLiteralFileToString_h_GUID_8B63CB02_19E7_4C9A_40C6_E5AFC056DA2E
28
#define INCLUDED_StringLiteralFileToString_h_GUID_8B63CB02_19E7_4C9A_40C6_E5AFC056DA2E
29
30
// Internal Includes
31
// - none
32
33
// Library/third-party includes
34
// - none
35
36
// Standard includes
37
#include <string>
38
#include <stddef.h>
39
40
namespace
osvr
{
41
namespace
util {
44
template
<
size_t
N>
45
inline
std::string
makeString
(
const
char
(&arrayLiteral)[N]) {
46
return
std::string(arrayLiteral, N);
47
}
48
}
// namespace util
49
}
// namespace osvr
50
51
#endif // INCLUDED_StringLiteralFileToString_h_GUID_8B63CB02_19E7_4C9A_40C6_E5AFC056DA2E
osvr
<
Definition:
ClientInterfaceObjectManager.h:43
osvr::util::makeString
std::string makeString(const char(&arrayLiteral)[N])
Safely and easily convert a literal array of characters (like from osvr_json_to_c) into a std::string...
Definition:
StringLiteralFileToString.h:45
osvr
Util
StringLiteralFileToString.h
Generated on Tue May 16 2017 15:22:21 for OSVR Framework (Internal Development Docs) by
Doxygen
1.8.8