Add source code for ctrtool

This commit is contained in:
jakcron
2022-03-12 16:00:33 +08:00
parent 6ad2f13c50
commit 800f5776bc
681 changed files with 219734 additions and 0 deletions
@@ -0,0 +1,29 @@
/**
* @file ResourceStatus.h
* @brief Declaration of tc::ResourceStatus
* @author Jack (jakcron)
* @version 0.1
* @date 2019/01/16
**/
#pragma once
#include <bitset>
namespace tc {
/**
* @enum ResourceStatusFlag
* @brief Flags for ResourceStatus
**/
enum ResourceStatusFlag
{
RESFLAG_READY, /**< Resource is ready for use */
RESFLAG_ERROR, /**< Resource encountered an error */
RESFLAG_NOINIT, /**< Resource is not initialized */
};
/**
* @brief Bitset indicating resource state information (see @ref ResourceStatusFlag)
**/
using ResourceStatus = std::bitset<32>;
} // namespace tc