HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
systemInfo.h
Go to the documentation of this file.
1 //
2 // Copyright 2016 Pixar
3 //
4 // Licensed under the terms set forth in the LICENSE.txt file available at
5 // https://openusd.org/license.
6 //
7 #ifndef PXR_BASE_ARCH_SYSTEM_INFO_H
8 #define PXR_BASE_ARCH_SYSTEM_INFO_H
9 
10 /// \file arch/systemInfo.h
11 /// \ingroup group_arch_SystemFunctions
12 /// Provide architecture-specific system information.
13 
14 #include "pxr/pxr.h"
15 #include "pxr/base/arch/api.h"
16 #include <string>
17 
19 
20 /// \addtogroup group_arch_SystemFunctions
21 ///@{
22 
23 /// Return current working directory as a string.
25 std::string ArchGetCwd();
26 
27 /// Return the path to the program's executable.
29 std::string ArchGetExecutablePath();
30 
31 /// Return the system's memory page size. Safe to assume power-of-two.
33 int ArchGetPageSize();
34 
35 ///@}
36 
38 
39 #endif // PXR_BASE_ARCH_SYSTEM_INFO_H
ARCH_API std::string ArchGetExecutablePath()
Return the path to the program's executable.
ARCH_API std::string ArchGetCwd()
Return current working directory as a string.
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
ARCH_API int ArchGetPageSize()
Return the system's memory page size. Safe to assume power-of-two.
#define ARCH_API
Definition: api.h:23