 |
DATAKIT API
V2025.1
|
|
const Dtk_string & GetName() const
Get name of component.
void SetInputFileVersion(const Dtk_string &inVal)
Set input file version.
void SetStopHour(Dtk_string inVal)
Set stop hour.
Definition: dtk_log.hpp:52
void SetInputFormat(const Dtk_string &inVal)
Set input format name.
Dtk_ErrorStatus FillConfig()
Fill log with config information (must be called after config initialization)
const Dtk_string & GetType() const
Get message type
uint32_t Dtk_ID
Definition: define.h:689
const Dtk_tab< Dtk_string > & GetOutputFileNamesWritten() const
Get list of names of written output files.
Dtk_ErrorStatus AssociateFileNames(const Dtk_string &inTemporaryFile, const Dtk_string &inFileName)
Associates temporary file to another file (used for writing when using temporary file to create anoth...
Definition: dtk_log.hpp:170
void SetCPUTime(double inVal)
Set CPU time.
Dtk_ErrorStatus AddReadingEntity(Dtk_ID inComponentID, const char *inName, int inCount=1)
Adds to log a reading inventory and associates it to a component from its ID
Dtk_Log_Component_Info & operator=(const Dtk_Log_Component_Info &inComponentInfo)
void SetQuantity(int val)
Set number of instantiations of component.
Dtk_ErrorStatus GetComponentReadingErrorStatus(Dtk_Size_t inComponentID, Dtk_ErrorStatus &outReadingErrorStatus)
Get reading error status of component from component ID.
const Dtk_string & GetFileVersion() const
Get file version of component
uint64_t Dtk_UInt64
Definition: define.h:693
void SetFullPathName(const Dtk_string &val)
Set full path name of component.
void SetWorkingSetSize(Dtk_UInt64 inVal)
Set working set size.
Dtk_Log_Component_Info(const Dtk_Log_Component_Info &inComponentInfo)
const Dtk_string & GetOutputFileName() const
Get output file name.
const Dtk_string & GetXslSchemaName() const
Get Xsl schema name used in the .xml log file.
Dtk_ErrorStatus GetOutputFileInventory(Dtk_string inFileName, Dtk_Log_Inventory &outInventory)
Get inventory of written output file from its name.
Dtk_Log_Message & operator=(const Dtk_Log_Message &inMessage)
Dtk_ErrorStatus AddSyntheticReadingInventory(Dtk_ID inComponentID, int inNum, int *inCount, char **inEntitiesName)
Adds to log a synthetic reading inventory and associates it to a component from its ID
const Dtk_string & GetLogFileName() const
Get log file name (with .xml extension)
Dtk_Log_Inventory(const Dtk_Log_Inventory &inInventory)
long GetFileSize() const
Get file size of component.
int GetQuantity() const
Get number of instantiations of component
Dtk_Handle * _Private
Definition: dtk_log.hpp:54
void SetProductMode(const Dtk_string &inVal)
Set product mode.
const Dtk_string & GetStopHour() const
Get stop hour of process
void SetUnitScale(Dtk_Double64 val)
Set unit scale of component.
const Dtk_string & GetPath()
Get path of component.
virtual Dtk_ErrorStatus Flush()
Flush the content of the log.
This is a high level string class.
Definition: dtk_string.hpp:58
void SetIsXslEmbedded(Dtk_bool inVal)
Tells if .xsl must be embedded in the .xml log file.
Dtk_Size_t GetNbOutputFileValidationProperties(const Dtk_string &inOutputFileName)
Get number of validation properties of an output file from its name.
size_t Dtk_Size_t
Definition: define.h:712
Dtk_Size_t GetNbValidationProperties(Dtk_Size_t inComponentID)
Get number of validation properties of a component from its ID.
void SetUnitScale(double inVal)
Set unit scale.
const Dtk_string & GetStartHour() const
Get start hour of process
static Dtk_Log * DtkDynamicCast(Dtk_Object *inObject)
void SetIsCrash(Dtk_bool inVal)
Tells if there was a crash or not.
Dtk_bool GetIsAssembly() const
Get if component is an assembly or a part
Dtk_ErrorStatus AddSyntheticWritingInventory(const Dtk_string &inOutputFileName, int inNum, int *inCount, char **inEntitiesName)
Adds to log a synthetic writing inventory and associates it to an output file from its name
static Dtk_LogPtr Create()
constructors returning Smart pointers
const Dtk_string & GetFullPathName() const
Get full path name of component.
#define DTK_FALSE
Definition: define.h:728
char Dtk_bool
Definition: define.h:725
Dtk_UInt64 GetPeakWorkingSetSize() const
Get peak working set size of process
int GetHealingFlag() const
Get healing flag.
double Dtk_Double64
Definition: define.h:699
int GetAPIVersion() const
Get API version.
Dtk_Size_t GetNbEntityTypes()
Get number of entity types in inventory
Definition: dtk_log.hpp:14
Dtk_ErrorStatus GetComponentInfo(Dtk_Size_t inComponentID, Dtk_Log_Component_Info &outComponentInfo)
Get component information from component ID.
Dtk_UInt64 GetWorkingSetSize() const
Get working set size of process
Dtk_Double64 GetUnitScale() const
Get unit scale of component.
const Dtk_string & GetInputFileVersion() const
Get file version of input file
Dtk_ErrorStatus GetListComponentID(Dtk_tab< Dtk_ID > &outListID)
Get list of ID of read components.
void SetStartTime(time_t inVal)
Set start time.
Dtk_bool GetIsInternal() const
Get if component is internal
void SetIsInternal(Dtk_bool val)
Set if component is internal.
const Dtk_string & GetXslFolder() const
Get Folder that contains .xsl schema file used in .xml log file
virtual Dtk_ErrorStatus Write()
Write the content of the log into the .xml file (SetLogFileName() must be called for that)
Dtk_ErrorStatus AddErrorMessage(const Dtk_string &inMessage, const Dtk_string &inType, int inComponentID=-1)
Adds to log an error message.
Dtk_ErrorStatus GetGlobalWarningMessages(Dtk_tab< Dtk_Log_Message > &outMessages)
Get global warning messages.
Dtk_ErrorStatus AddReadingInventory(Dtk_ID inComponentID, int inNum, const int *inCount, const char **inEntitiesName)
Adds to log a reading inventory and associates it to a component from its ID
time_t GetStartTime() const
Get start time of process
Dtk_ErrorStatus GetComponentWarningMessages(Dtk_Size_t inComponentID, Dtk_tab< Dtk_Log_Message > &outMessages)
Get warning messages associated to a component from its ID.
void SetMessageInfo(const Dtk_string &inValue)
Set message.
Dtk_ErrorStatus AddFileInfoAndReadingErrorStatus(const Dtk_string &inInputFileName, Dtk_string inFileVersion, Dtk_bool inIsAssembly, Dtk_Double64 inUnitScale, Dtk_ErrorStatus inStatus)
Adds to log the info of a read file and its reading error status (must only be called if Dtk_Componen...
void SetIsAssembly(Dtk_bool val)
Set if component is an assembly or a part.
Definition: dtk_log.hpp:81
Dtk_ErrorStatus GetOutputFileValidationProperty(const Dtk_string &inOutputFileName, Dtk_Size_t inIndex, Dtk_string &outEntityID, Dtk_string &outEntityType, Dtk_string &outValPropName, Dtk_string &outRead, Dtk_string &outComputed, Dtk_string &outGap, Dtk_string &outStatus)
Get validation property of an output file from its name and index.
Dtk_ErrorStatus GetConfigSection(Dtk_Size_t inIndex, Dtk_string &outName, Dtk_tab< Dtk_string > &outParameters, Dtk_tab< Dtk_string > &outValues)
Get configuration section information (section name, parameters and values) from index.
Dtk_bool GetIsCatalog() const
Get if component is a catalog or a not
const Dtk_string & GetOutputFormat() const
Get output format name.
Dtk_ErrorStatus GetGlobalErrorMessages(Dtk_tab< Dtk_Log_Message > &outMessages)
Get global error messages.
int DtkDynamicType(const int &inId)
downcasting
Dtk_Handle * _Private
Definition: dtk_log.hpp:83
Dtk_ErrorStatus
Definition: error_dtk.hpp:6
double GetWallTime() const
Get wall time of process
Dtk_ErrorStatus GetComponentInfoMessages(Dtk_Size_t inComponentID, Dtk_tab< Dtk_Log_Message > &outMessages)
Get info messages associated to a component from its ID.
Dtk_ErrorStatus AddWritingInventory(const Dtk_string &inOutputFileName, int inNum, int *inCount, char **inEntitiesName)
Adds to log a writing inventory and associates it to an output file from its name
void SetConfigFileName(const Dtk_string &inVal)
Set config file name.
void SetFileSize(long val)
Set file size of component.
void SetOutputFileName(const Dtk_string &inVal)
Set output file name.
Definition: util_ptr_dtk.hpp:37
Dtk_Handle * _Private
Definition: dtk_log.hpp:16
void SetPeakWorkingSetSize(Dtk_UInt64 inVal)
Set Peak working set size.
Dtk_ErrorStatus AddOutputFileValidationProperty(const Dtk_string &inOutputFileName, const Dtk_string &inEntityID, const Dtk_string &inEntityType, const Dtk_string &inValPropName, const Dtk_string &inWrite)
Add to log the validation property of an output file from its name.
Dtk_Log_Message(const Dtk_Log_Message &inMessage)
time_t GetStopTime() const
Get stop time of process
Dtk_ErrorStatus AddComponentInfoAndReadingErrorStatus(const Dtk_ComponentPtr &inComponent, Dtk_ErrorStatus inStatus)
Adds to log the info of a read component and its reading error status.
Dtk_ErrorStatus GetComponentSyntheticInventory(Dtk_Size_t inComponentID, Dtk_Log_Inventory &outInventory)
Get synthetic inventory of component from its ID.
void SetFileVersion(const Dtk_string &val)
Set file version of component.
void SetType(const Dtk_string &inValue)
Set message type.
Dtk_Size_t GetTotalCount()
Get total count of entities in inventory
const Dtk_string & GetEntityType(Dtk_Size_t inIndex)
Get entity type in inventory from index.
const Dtk_string & GetConfigFileName() const
Get config file name.
const Dtk_string & GetInputFormat() const
Get input format name.
void SetHealingFlag(int inVal)
Set healing flag.
const Dtk_string & GetProductMode() const
Get product mode.
double GetUnitScale() const
Get unit scale.
void SetIsCatalog(Dtk_bool val)
Set if component is a catalog.
void SetName(const Dtk_string &val)
Set name of component.
Dtk_ErrorStatus GetOutputFileSyntheticInventory(Dtk_string inFileName, Dtk_Log_Inventory &outInventory)
Get synthetic inventory of written output file from its name.
Dtk_Size_t GetNbConfigSections()
Get number of sections of the configuration
Dtk_ErrorStatus AddOutputFileNameWritten(const Dtk_string &inOutputFileName, Dtk_bool isRoot=DTK_FALSE)
Adds to log the name of a written output file.
void SetLogFileName(const Dtk_string &inVal)
Set log file name.
void SetOutputFormat(const Dtk_string &inVal)
Set output format name.
Dtk_ErrorStatus AddValidationProperty(Dtk_Size_t inComponentID, const Dtk_string &inEntityID, const Dtk_string &inEntityType, const Dtk_string &inValPropName, const Dtk_string &inRead, const Dtk_string &inComputed, const Dtk_string &inGap, const Dtk_string &inStatus)
Add to log the validation property of a component from its ID.
Dtk_ErrorStatus AddWarningMessage(const Dtk_string &inMessage, const Dtk_string &inType, int inComponentID=-1)
Adds to log a warning message.
Definition: dtk_object.hpp:8
Dtk_Handle * _Private
Definition: dtk_log.hpp:172
@ _typeID
Definition: dtk_log.hpp:174
void SetXslFolder(const Dtk_string &inVal)
Set Folder that contains .xsl schema file to use in .xml log file.
Dtk_tab< Dtk_ID > GetListMissingComponents()
Get List of ID of missing components.
long GetOutputFileSize() const
Get size of output file
Dtk_ErrorStatus GetValidationProperty(Dtk_Size_t inComponentID, Dtk_Size_t inIndex, Dtk_string &outEntityID, Dtk_string &outEntityType, Dtk_string &outValPropName, Dtk_string &outRead, Dtk_string &outComputed, Dtk_string &outGap, Dtk_string &outStatus)
Get validation property of a component from its ID and index.
double GetCPUTime() const
Get CPU time of process
void SetStopTime(time_t inVal)
Set stop time.
@ DTK_TYPE_LOG
Definition: define.h:596
~Dtk_Log_Component_Info()
Dtk_ErrorStatus AddInfoMessage(const Dtk_string &inMessage, const Dtk_string &inType, int inComponentID=-1)
Adds to log an info message.
Dtk_bool GetIsCrash()
Get if there was a crash or not
Dtk_ErrorStatus GetComponentErrorMessages(Dtk_Size_t inComponentID, Dtk_tab< Dtk_Log_Message > &outMessages)
Get error messages associated to a component from its ID.
Dtk_SmartPtr< Dtk_Log > Dtk_LogPtr
Definition: dtk_log.hpp:10
Dtk_ErrorStatus GetGlobalInfoMessages(Dtk_tab< Dtk_Log_Message > &outMessages)
Get global info messages.
const Dtk_string & GetInputFileName() const
Get input file name.
void SetStartHour(Dtk_string inVal)
Set start hour.
Dtk_Log_Inventory & operator=(const Dtk_Log_Inventory &inInventory)
Dtk_string GetXslFilePath() const
Get full file path of the .xsl schema file used in .xml log file
Dtk_ErrorStatus GetComponentInventory(Dtk_Size_t inComponentID, Dtk_Log_Inventory &outInventory)
Get inventory of component from its ID.
void AddEntity(int inCount, const Dtk_string &inName)
Adds entity type and its count to inventory
const Dtk_string & GetMessageInfo() const
Get message
void SetInputFileName(const Dtk_string &inVal)
Set input file name.
void SetWallTime(double inVal)
Set wall time.
int GetEntitiesCount(Dtk_Size_t inIndex)
Get count of entities with the same type in inventory from index.