Skip to content

create rsutils-os.cpp, rsutils-os.h #11830

Merged
Nir-Az merged 3 commits into
realsenseai:developmentfrom
noacoohen:pyrsutils-os
May 23, 2023
Merged

create rsutils-os.cpp, rsutils-os.h #11830
Nir-Az merged 3 commits into
realsenseai:developmentfrom
noacoohen:pyrsutils-os

Conversation

@noacoohen

Copy link
Copy Markdown
Contributor

move get os_name() and get_platform_name() to rsutils-os

@@ -0,0 +1,11 @@
// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2021 Intel Corporation. All Rights Reserved.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2023

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Comment thread third-party/rsutils/src/rsutils-os.cpp Outdated
@@ -0,0 +1,47 @@
// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2022 Intel Corporation. All Rights Reserved.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2023

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

#pragma once
#include <string>

namespace rsutils

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add another child namespace called OS.

namespace rsutils{
namespace os{
...
}
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

@@ -0,0 +1,15 @@
// License: Apache 2.0. See LICENSE file in root directory.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we rename to os.h / os.cpp
It will be weird to do this
#include "rsutils/os/rsutils-os.h"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@Nir-Az Nir-Az merged commit 6fc74d6 into realsenseai:development May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants