DATAKIT API  V2025.1
Dtk_Log_Inventory Class Reference

Public Member Functions

void AddEntity (int inCount, const Dtk_string &inName)
 Adds entity type and its count to inventory
More...
 
 Dtk_Log_Inventory ()
 
 Dtk_Log_Inventory (const Dtk_Log_Inventory &inInventory)
 
int GetEntitiesCount (Dtk_Size_t inIndex)
 Get count of entities with the same type in inventory from index. More...
 
const Dtk_stringGetEntityType (Dtk_Size_t inIndex)
 Get entity type in inventory from index. More...
 
Dtk_Size_t GetNbEntityTypes ()
 Get number of entity types in inventory
More...
 
Dtk_Size_t GetTotalCount ()
 Get total count of entities in inventory
More...
 
Dtk_Log_Inventoryoperator= (const Dtk_Log_Inventory &inInventory)
 
 ~Dtk_Log_Inventory ()
 

Protected Attributes

Dtk_Handle * _Private
 

Friends

class Dtk_SmartPtr< Dtk_Log >
 

Constructor & Destructor Documentation

◆ Dtk_Log_Inventory() [1/2]

Dtk_Log_Inventory::Dtk_Log_Inventory ( )

◆ Dtk_Log_Inventory() [2/2]

Dtk_Log_Inventory::Dtk_Log_Inventory ( const Dtk_Log_Inventory inInventory)

◆ ~Dtk_Log_Inventory()

Dtk_Log_Inventory::~Dtk_Log_Inventory ( )

Member Function Documentation

◆ AddEntity()

void Dtk_Log_Inventory::AddEntity ( int  inCount,
const Dtk_string inName 
)

Adds entity type and its count to inventory

Parameters
[in]inCount: Count of entities
[in]inName: Entity type

◆ GetEntitiesCount()

int Dtk_Log_Inventory::GetEntitiesCount ( Dtk_Size_t  inIndex)

Get count of entities with the same type in inventory from index.

Parameters
[in]inIndex: Index (with range [0..GetNbEntityTypes()-1])
Returns
Count of entities

◆ GetEntityType()

const Dtk_string& Dtk_Log_Inventory::GetEntityType ( Dtk_Size_t  inIndex)

Get entity type in inventory from index.

Parameters
[in]inIndex: Index (with range [0..GetNbEntityTypes()-1])
Returns
Entity type

◆ GetNbEntityTypes()

Dtk_Size_t Dtk_Log_Inventory::GetNbEntityTypes ( )

Get number of entity types in inventory

Returns
Number of entity types

◆ GetTotalCount()

Dtk_Size_t Dtk_Log_Inventory::GetTotalCount ( )

Get total count of entities in inventory

Returns
Total count of entities

◆ operator=()

Dtk_Log_Inventory& Dtk_Log_Inventory::operator= ( const Dtk_Log_Inventory inInventory)

Friends And Related Function Documentation

◆ Dtk_SmartPtr< Dtk_Log >

friend class Dtk_SmartPtr< Dtk_Log >
friend

Field Documentation

◆ _Private

Dtk_Handle* Dtk_Log_Inventory::_Private
protected