Microsoft Information Protection (MIP) SDK for C++: Reference 1.15
Doxygen-generated documentation for MIP SDK written in C++
Loading...
Searching...
No Matches
MetadataVersion Class Reference

Interface for a MetadataVersion. More...

#include <src/api/mip/upe/metadata_version.h>

Public Member Functions

virtual MetadataVersionFormat GetFlags () const
 Get the flags that define how metadata is processed for a given version.
 
virtual uint32_t GetValue () const
 Get the numerical version.
 
virtual bool HasFlag (MetadataVersionFormat flag) const
 Get whether a specific flag is set.
 
 MetadataVersion (uint32_t version, MetadataVersionFormat flags)
 MetadataVersion constructor.
 

Detailed Description

Interface for a MetadataVersion.

MetadataVersion determines which metadata is active and how it is processed.

Definition at line 73 of file metadata_version.h.

Constructor & Destructor Documentation

◆ MetadataVersion()

MetadataVersion::MetadataVersion ( uint32_t version,
MetadataVersionFormat flags )
inline

MetadataVersion constructor.

Parameters
versionnumerical version to use for metadata actions
flagsflags to specify how the version is used to calculate metadata actions

Definition at line 80 of file metadata_version.h.

80: mVersion(version), mFlags(flags) {}

Member Function Documentation

◆ GetFlags()

virtual MetadataVersionFormat MetadataVersion::GetFlags ( ) const
inlinevirtual

Get the flags that define how metadata is processed for a given version.

Returns
The flags that specify how the metadata is processed.

Definition at line 98 of file metadata_version.h.

98{ return mFlags; }

◆ GetValue()

virtual uint32_t MetadataVersion::GetValue ( ) const
inlinevirtual

Get the numerical version.

Returns
The numerical version.

Definition at line 86 of file metadata_version.h.

86{ return mVersion; }

◆ HasFlag()

virtual bool MetadataVersion::HasFlag ( MetadataVersionFormat flag) const
inlinevirtual

Get whether a specific flag is set.

Returns
true if the flag is set.

Definition at line 92 of file metadata_version.h.

92{ return flag == (flag & mFlags); }

The documentation for this class was generated from the following file: