DATAKIT API  V2025.1
dtk_log.hpp
Go to the documentation of this file.
1 #ifndef _DTK_LOG_HPP_
2 #define _DTK_LOG_HPP_
3 #include "def/define.h"
4 #include "dtk_maindoc_ptr.hpp"
7 #include "util/error_dtk.hpp"
8 #include "util/util_stl_dtk.hpp"
9 
10 class Dtk_Log;
12 
14 {
15 protected:
16  struct Dtk_Handle; // Not defined here
17  Dtk_Handle *_Private; // Handle
18  friend class Dtk_SmartPtr<Dtk_Log>;
19 
20 public:
22  Dtk_Log_Inventory(const Dtk_Log_Inventory& inInventory);
25 
29 
33 
38 
43 
47  // must only be called to fill inventory
48  void AddEntity(int inCount, const Dtk_string& inName);
49 };
50 
52 {
53 protected:
54  struct Dtk_Handle; // Not defined here
55  Dtk_Handle *_Private; // Handle
56 
57 public:
59  Dtk_Log_Message(const Dtk_Log_Message& inMessage);
62 
65  const Dtk_string & GetType() const;
66 
69  const Dtk_string & GetMessageInfo() const;
70 
73  void SetType(const Dtk_string& inValue);
74 
77  void SetMessageInfo(const Dtk_string& inValue);
78 };
79 
81 {
82 protected:
83  struct Dtk_Handle; // Not defined here
84  Dtk_Handle *_Private; // Handle
85 
86 public:
91 
95 
99 
103 
106  const Dtk_string & GetName() const;
107 
110  const Dtk_string & GetFullPathName() const;
111 
114  int GetQuantity() const;
115 
118  long GetFileSize() const;
119 
123 
126  const Dtk_string & GetFileVersion() const;
127 
130  const Dtk_string & GetPath();
131 
135 
139 
143 
146  void SetName(const Dtk_string& val);
147 
150  void SetFullPathName(const Dtk_string& val);
151 
154  void SetQuantity(int val);
155 
158  void SetFileSize(long val);
159 
163 
166  void SetFileVersion(const Dtk_string& val);
167 };
168 
169 class Dtk_Log : public Dtk_Object
170 {
171 protected:
172  struct Dtk_Handle; // Not defined here
173  Dtk_Handle *_Private; // Handle
174  enum { _typeID = DTK_TYPE_LOG };
175 
176 private :
177  //void _Init();
178  //void _Copy(const Dtk_Log& s);
179  //void _Reset();
180  friend class Dtk_SmartPtr<Dtk_Log>;
181 
182 public:
184  virtual ~Dtk_Log();
185 
187  static Dtk_LogPtr Create();
189  int DtkDynamicType(const int& inId);
190  static Dtk_Log * DtkDynamicCast(Dtk_Object * inObject);
191 
194  const Dtk_string & GetLogFileName() const;
195 
198  int GetAPIVersion() const;
199 
202  const Dtk_string & GetProductMode() const;
203 
206  const Dtk_string & GetInputFormat() const;
207 
210  const Dtk_string & GetOutputFormat() const;
211 
214  int GetHealingFlag() const;
215 
218  const Dtk_string & GetConfigFileName() const;
219 
222  const Dtk_string & GetInputFileName() const;
223 
227 
230  const Dtk_string & GetOutputFileName() const;
231 
234  long GetOutputFileSize() const;
235 
238  double GetUnitScale() const;
239 
242  time_t GetStartTime() const;
243 
246  time_t GetStopTime() const;
247 
250  const Dtk_string & GetStartHour() const;
251 
254  const Dtk_string & GetStopHour() const;
255 
258  double GetCPUTime() const;
259 
262  double GetWallTime() const;
263 
267 
271 
274  const Dtk_string & GetXslSchemaName() const;
275 
278  const Dtk_string & GetXslFolder() const;
279 
283 
287 
291 
299 
303 
309 
315 
321 
327 
333 
339 
345 
350 
355 
360 
363  // only useful for reading
365 
368  // only useful for writing
370 
376 
382 
387 
399  Dtk_ErrorStatus GetOutputFileValidationProperty(const Dtk_string& inOutputFileName, Dtk_Size_t inIndex, Dtk_string &outEntityID, Dtk_string &outEntityType,
400  Dtk_string &outValPropName, Dtk_string &outRead, Dtk_string &outComputed, Dtk_string &outGap, Dtk_string &outStatus);
401 
406 
418  Dtk_ErrorStatus GetValidationProperty(Dtk_Size_t inComponentID, Dtk_Size_t inIndex, Dtk_string &outEntityID, Dtk_string &outEntityType,
419  Dtk_string &outValPropName, Dtk_string &outRead, Dtk_string &outComputed, Dtk_string &outGap, Dtk_string &outStatus);
420 
423  void SetLogFileName(const Dtk_string& inVal);
424 
427  void SetProductMode(const Dtk_string& inVal);
428 
431  void SetInputFormat(const Dtk_string& inVal);
432 
435  void SetOutputFormat(const Dtk_string& inVal);
436 
439  void SetHealingFlag(int inVal);
440 
443  void SetConfigFileName(const Dtk_string& inVal);
444 
447  void SetInputFileName(const Dtk_string& inVal);
448 
451  void SetInputFileVersion(const Dtk_string& inVal);
452 
455  void SetOutputFileName(const Dtk_string& inVal);
456 
459  void SetUnitScale(double inVal);
460 
463  void SetStartTime(time_t inVal);
464 
467  void SetStopTime(time_t inVal);
468 
472 
475  void SetStopHour(Dtk_string inVal);
476 
479  void SetCPUTime(double inVal);
480 
483  void SetWallTime(double inVal);
484 
488 
492 
495  void SetXslFolder(const Dtk_string& inVal);
496 
499  void SetIsCrash(Dtk_bool inVal);
500 
504 
508 
513  Dtk_ErrorStatus AssociateFileNames(const Dtk_string& inTemporaryFile, const Dtk_string& inFileName);
514 
521  Dtk_ErrorStatus AddReadingInventory(Dtk_ID inComponentID, int inNum, const int *inCount, const char **inEntitiesName);
522 
528  Dtk_ErrorStatus AddReadingEntity(Dtk_ID inComponentID, const char * inName, int inCount=1);
529 
536  Dtk_ErrorStatus AddSyntheticReadingInventory(Dtk_ID inComponentID, int inNum, int *inCount, char **inEntitiesName);
537 
544  Dtk_ErrorStatus AddWritingInventory(const Dtk_string& inOutputFileName, int inNum, int *inCount, char **inEntitiesName);
545 
552  Dtk_ErrorStatus AddSyntheticWritingInventory(const Dtk_string& inOutputFileName, int inNum, int *inCount, char **inEntitiesName);
553 
559 
565  Dtk_ErrorStatus AddWarningMessage(const Dtk_string& inMessage, const Dtk_string& inType, int inComponentID = -1);
566 
572  Dtk_ErrorStatus AddErrorMessage(const Dtk_string& inMessage, const Dtk_string& inType, int inComponentID = -1);
573 
579  Dtk_ErrorStatus AddInfoMessage(const Dtk_string& inMessage, const Dtk_string& inType, int inComponentID = -1);
580 
586 
594  Dtk_ErrorStatus AddFileInfoAndReadingErrorStatus(const Dtk_string& inInputFileName, Dtk_string inFileVersion, Dtk_bool inIsAssembly,
595  Dtk_Double64 inUnitScale, Dtk_ErrorStatus inStatus);
596 
607  Dtk_ErrorStatus AddValidationProperty(Dtk_Size_t inComponentID, const Dtk_string &inEntityID, const Dtk_string &inEntityType,
608  const Dtk_string &inValPropName, const Dtk_string &inRead, const Dtk_string &inComputed,
609  const Dtk_string &inGap, const Dtk_string &inStatus);
610 
618  Dtk_ErrorStatus AddOutputFileValidationProperty(const Dtk_string& inOutputFileName, const Dtk_string &inEntityID, const Dtk_string &inEntityType,
619  const Dtk_string &inValPropName, const Dtk_string &inWrite);
620 
624 
628 };
629 
630 
631 
632 
633 #endif
Dtk_Log_Component_Info::GetName
const Dtk_string & GetName() const
Get name of component.
Dtk_Log::SetInputFileVersion
void SetInputFileVersion(const Dtk_string &inVal)
Set input file version.
Dtk_Log::SetStopHour
void SetStopHour(Dtk_string inVal)
Set stop hour.
Dtk_Log_Message
Definition: dtk_log.hpp:52
Dtk_Log::SetInputFormat
void SetInputFormat(const Dtk_string &inVal)
Set input format name.
Dtk_Log::FillConfig
Dtk_ErrorStatus FillConfig()
Fill log with config information (must be called after config initialization)
Dtk_Log_Message::GetType
const Dtk_string & GetType() const
Get message type
Dtk_ID
uint32_t Dtk_ID
Definition: define.h:689
Dtk_Log::GetOutputFileNamesWritten
const Dtk_tab< Dtk_string > & GetOutputFileNamesWritten() const
Get list of names of written output files.
Dtk_Log::AssociateFileNames
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...
Dtk_Log
Definition: dtk_log.hpp:170
Dtk_Log::SetCPUTime
void SetCPUTime(double inVal)
Set CPU time.
Dtk_Log::AddReadingEntity
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=
Dtk_Log_Component_Info & operator=(const Dtk_Log_Component_Info &inComponentInfo)
Dtk_Log_Component_Info::SetQuantity
void SetQuantity(int val)
Set number of instantiations of component.
Dtk_Log::GetComponentReadingErrorStatus
Dtk_ErrorStatus GetComponentReadingErrorStatus(Dtk_Size_t inComponentID, Dtk_ErrorStatus &outReadingErrorStatus)
Get reading error status of component from component ID.
Dtk_Log_Component_Info::GetFileVersion
const Dtk_string & GetFileVersion() const
Get file version of component
Dtk_UInt64
uint64_t Dtk_UInt64
Definition: define.h:693
Dtk_Log_Component_Info::Dtk_Log_Component_Info
Dtk_Log_Component_Info()
Dtk_Log_Component_Info::SetFullPathName
void SetFullPathName(const Dtk_string &val)
Set full path name of component.
Dtk_Log::SetWorkingSetSize
void SetWorkingSetSize(Dtk_UInt64 inVal)
Set working set size.
Dtk_Log_Component_Info::Dtk_Log_Component_Info
Dtk_Log_Component_Info(const Dtk_Log_Component_Info &inComponentInfo)
Dtk_Log::GetOutputFileName
const Dtk_string & GetOutputFileName() const
Get output file name.
Dtk_Log::GetXslSchemaName
const Dtk_string & GetXslSchemaName() const
Get Xsl schema name used in the .xml log file.
Dtk_Log::GetOutputFileInventory
Dtk_ErrorStatus GetOutputFileInventory(Dtk_string inFileName, Dtk_Log_Inventory &outInventory)
Get inventory of written output file from its name.
Dtk_Log_Message::operator=
Dtk_Log_Message & operator=(const Dtk_Log_Message &inMessage)
Dtk_Log::AddSyntheticReadingInventory
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
Dtk_Log::GetLogFileName
const Dtk_string & GetLogFileName() const
Get log file name (with .xml extension)
Dtk_Log_Inventory::Dtk_Log_Inventory
Dtk_Log_Inventory(const Dtk_Log_Inventory &inInventory)
Dtk_Log_Component_Info::GetFileSize
long GetFileSize() const
Get file size of component.
Dtk_Log_Component_Info::GetQuantity
int GetQuantity() const
Get number of instantiations of component
Dtk_Log_Message::_Private
Dtk_Handle * _Private
Definition: dtk_log.hpp:54
Dtk_Log_Message::~Dtk_Log_Message
~Dtk_Log_Message()
Dtk_Log::SetProductMode
void SetProductMode(const Dtk_string &inVal)
Set product mode.
Dtk_Log::GetStopHour
const Dtk_string & GetStopHour() const
Get stop hour of process
Dtk_Log_Component_Info::SetUnitScale
void SetUnitScale(Dtk_Double64 val)
Set unit scale of component.
Dtk_Log_Component_Info::GetPath
const Dtk_string & GetPath()
Get path of component.
Dtk_Log::Flush
virtual Dtk_ErrorStatus Flush()
Flush the content of the log.
Dtk_string
This is a high level string class.
Definition: dtk_string.hpp:58
Dtk_Log::SetIsXslEmbedded
void SetIsXslEmbedded(Dtk_bool inVal)
Tells if .xsl must be embedded in the .xml log file.
Dtk_Log::GetNbOutputFileValidationProperties
Dtk_Size_t GetNbOutputFileValidationProperties(const Dtk_string &inOutputFileName)
Get number of validation properties of an output file from its name.
Dtk_Size_t
size_t Dtk_Size_t
Definition: define.h:712
Dtk_Log::GetNbValidationProperties
Dtk_Size_t GetNbValidationProperties(Dtk_Size_t inComponentID)
Get number of validation properties of a component from its ID.
Dtk_Log_Inventory::Dtk_Log_Inventory
Dtk_Log_Inventory()
Dtk_Log::SetUnitScale
void SetUnitScale(double inVal)
Set unit scale.
Dtk_Log::GetStartHour
const Dtk_string & GetStartHour() const
Get start hour of process
Dtk_Log::DtkDynamicCast
static Dtk_Log * DtkDynamicCast(Dtk_Object *inObject)
Dtk_Log::SetIsCrash
void SetIsCrash(Dtk_bool inVal)
Tells if there was a crash or not.
Dtk_Log_Component_Info::GetIsAssembly
Dtk_bool GetIsAssembly() const
Get if component is an assembly or a part
Dtk_Log::AddSyntheticWritingInventory
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
Dtk_Log::Create
static Dtk_LogPtr Create()
constructors returning Smart pointers
Dtk_Log_Component_Info::GetFullPathName
const Dtk_string & GetFullPathName() const
Get full path name of component.
DTK_FALSE
#define DTK_FALSE
Definition: define.h:728
Dtk_bool
char Dtk_bool
Definition: define.h:725
Dtk_Log::GetPeakWorkingSetSize
Dtk_UInt64 GetPeakWorkingSetSize() const
Get peak working set size of process
Dtk_Log::GetHealingFlag
int GetHealingFlag() const
Get healing flag.
Dtk_Double64
double Dtk_Double64
Definition: define.h:699
Dtk_Log_Message::Dtk_Log_Message
Dtk_Log_Message()
Dtk_Log::GetAPIVersion
int GetAPIVersion() const
Get API version.
Dtk_Log_Inventory::GetNbEntityTypes
Dtk_Size_t GetNbEntityTypes()
Get number of entity types in inventory
Dtk_Log_Inventory
Definition: dtk_log.hpp:14
Dtk_Log::~Dtk_Log
virtual ~Dtk_Log()
Dtk_Log::GetComponentInfo
Dtk_ErrorStatus GetComponentInfo(Dtk_Size_t inComponentID, Dtk_Log_Component_Info &outComponentInfo)
Get component information from component ID.
Dtk_Log::GetWorkingSetSize
Dtk_UInt64 GetWorkingSetSize() const
Get working set size of process
Dtk_Log_Component_Info::GetUnitScale
Dtk_Double64 GetUnitScale() const
Get unit scale of component.
Dtk_Log::GetInputFileVersion
const Dtk_string & GetInputFileVersion() const
Get file version of input file
Dtk_Log::GetListComponentID
Dtk_ErrorStatus GetListComponentID(Dtk_tab< Dtk_ID > &outListID)
Get list of ID of read components.
Dtk_Log::SetStartTime
void SetStartTime(time_t inVal)
Set start time.
Dtk_Log_Component_Info::GetIsInternal
Dtk_bool GetIsInternal() const
Get if component is internal
Dtk_Log_Component_Info::SetIsInternal
void SetIsInternal(Dtk_bool val)
Set if component is internal.
Dtk_Log::GetXslFolder
const Dtk_string & GetXslFolder() const
Get Folder that contains .xsl schema file used in .xml log file
Dtk_Log::Write
virtual Dtk_ErrorStatus Write()
Write the content of the log into the .xml file (SetLogFileName() must be called for that)
Dtk_Log::AddErrorMessage
Dtk_ErrorStatus AddErrorMessage(const Dtk_string &inMessage, const Dtk_string &inType, int inComponentID=-1)
Adds to log an error message.
Dtk_Log::GetGlobalWarningMessages
Dtk_ErrorStatus GetGlobalWarningMessages(Dtk_tab< Dtk_Log_Message > &outMessages)
Get global warning messages.
Dtk_Log::AddReadingInventory
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
Dtk_Log::GetStartTime
time_t GetStartTime() const
Get start time of process
Dtk_Log::GetComponentWarningMessages
Dtk_ErrorStatus GetComponentWarningMessages(Dtk_Size_t inComponentID, Dtk_tab< Dtk_Log_Message > &outMessages)
Get warning messages associated to a component from its ID.
Dtk_Log_Message::SetMessageInfo
void SetMessageInfo(const Dtk_string &inValue)
Set message.
Dtk_Log::AddFileInfoAndReadingErrorStatus
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...
Dtk_Log_Component_Info::SetIsAssembly
void SetIsAssembly(Dtk_bool val)
Set if component is an assembly or a part.
Dtk_Log_Component_Info
Definition: dtk_log.hpp:81
Dtk_Log::GetOutputFileValidationProperty
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_Log::GetConfigSection
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_maindoc_ptr.hpp
Dtk_Log_Component_Info::GetIsCatalog
Dtk_bool GetIsCatalog() const
Get if component is a catalog or a not
Dtk_Log::GetOutputFormat
const Dtk_string & GetOutputFormat() const
Get output format name.
Dtk_Log::GetGlobalErrorMessages
Dtk_ErrorStatus GetGlobalErrorMessages(Dtk_tab< Dtk_Log_Message > &outMessages)
Get global error messages.
Dtk_Log::DtkDynamicType
int DtkDynamicType(const int &inId)
downcasting
error_dtk.hpp
Dtk_Log_Component_Info::_Private
Dtk_Handle * _Private
Definition: dtk_log.hpp:83
Dtk_ErrorStatus
Dtk_ErrorStatus
Definition: error_dtk.hpp:6
Dtk_Log::GetWallTime
double GetWallTime() const
Get wall time of process
Dtk_Log::GetComponentInfoMessages
Dtk_ErrorStatus GetComponentInfoMessages(Dtk_Size_t inComponentID, Dtk_tab< Dtk_Log_Message > &outMessages)
Get info messages associated to a component from its ID.
Dtk_Log::AddWritingInventory
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
Dtk_Log::SetConfigFileName
void SetConfigFileName(const Dtk_string &inVal)
Set config file name.
Dtk_Log_Component_Info::SetFileSize
void SetFileSize(long val)
Set file size of component.
Dtk_Log::SetOutputFileName
void SetOutputFileName(const Dtk_string &inVal)
Set output file name.
Dtk_SmartPtr
Definition: util_ptr_dtk.hpp:37
Dtk_Log_Inventory::_Private
Dtk_Handle * _Private
Definition: dtk_log.hpp:16
Dtk_Log::SetPeakWorkingSetSize
void SetPeakWorkingSetSize(Dtk_UInt64 inVal)
Set Peak working set size.
Dtk_Log::AddOutputFileValidationProperty
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::Dtk_Log_Message
Dtk_Log_Message(const Dtk_Log_Message &inMessage)
Dtk_Log::GetStopTime
time_t GetStopTime() const
Get stop time of process
Dtk_Log::AddComponentInfoAndReadingErrorStatus
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_Log::GetComponentSyntheticInventory
Dtk_ErrorStatus GetComponentSyntheticInventory(Dtk_Size_t inComponentID, Dtk_Log_Inventory &outInventory)
Get synthetic inventory of component from its ID.
Dtk_Log_Component_Info::SetFileVersion
void SetFileVersion(const Dtk_string &val)
Set file version of component.
Dtk_Log_Message::SetType
void SetType(const Dtk_string &inValue)
Set message type.
Dtk_Log_Inventory::GetTotalCount
Dtk_Size_t GetTotalCount()
Get total count of entities in inventory
Dtk_Log_Inventory::GetEntityType
const Dtk_string & GetEntityType(Dtk_Size_t inIndex)
Get entity type in inventory from index.
Dtk_Log::GetConfigFileName
const Dtk_string & GetConfigFileName() const
Get config file name.
util_stl_dtk.hpp
Dtk_Log::GetInputFormat
const Dtk_string & GetInputFormat() const
Get input format name.
Dtk_Log::SetHealingFlag
void SetHealingFlag(int inVal)
Set healing flag.
Dtk_Log::GetProductMode
const Dtk_string & GetProductMode() const
Get product mode.
define.h
Dtk_Log::GetUnitScale
double GetUnitScale() const
Get unit scale.
Dtk_Log_Component_Info::SetIsCatalog
void SetIsCatalog(Dtk_bool val)
Set if component is a catalog.
Dtk_Log::Dtk_Log
Dtk_Log()
Dtk_Log_Component_Info::SetName
void SetName(const Dtk_string &val)
Set name of component.
Dtk_tab< Dtk_string >
Dtk_Log::GetOutputFileSyntheticInventory
Dtk_ErrorStatus GetOutputFileSyntheticInventory(Dtk_string inFileName, Dtk_Log_Inventory &outInventory)
Get synthetic inventory of written output file from its name.
Dtk_Log::GetNbConfigSections
Dtk_Size_t GetNbConfigSections()
Get number of sections of the configuration
Dtk_Log::AddOutputFileNameWritten
Dtk_ErrorStatus AddOutputFileNameWritten(const Dtk_string &inOutputFileName, Dtk_bool isRoot=DTK_FALSE)
Adds to log the name of a written output file.
Dtk_Log::SetLogFileName
void SetLogFileName(const Dtk_string &inVal)
Set log file name.
Dtk_Log::SetOutputFormat
void SetOutputFormat(const Dtk_string &inVal)
Set output format name.
Dtk_Log::AddValidationProperty
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_Log::AddWarningMessage
Dtk_ErrorStatus AddWarningMessage(const Dtk_string &inMessage, const Dtk_string &inType, int inComponentID=-1)
Adds to log a warning message.
Dtk_Object
Definition: dtk_object.hpp:8
Dtk_Log::_Private
Dtk_Handle * _Private
Definition: dtk_log.hpp:172
Dtk_Log::_typeID
@ _typeID
Definition: dtk_log.hpp:174
Dtk_Log::SetXslFolder
void SetXslFolder(const Dtk_string &inVal)
Set Folder that contains .xsl schema file to use in .xml log file.
dtk_string.hpp
Dtk_Log::GetListMissingComponents
Dtk_tab< Dtk_ID > GetListMissingComponents()
Get List of ID of missing components.
Dtk_Log::GetOutputFileSize
long GetOutputFileSize() const
Get size of output file
Dtk_Log::GetValidationProperty
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.
Dtk_Log::GetCPUTime
double GetCPUTime() const
Get CPU time of process
Dtk_Log::SetStopTime
void SetStopTime(time_t inVal)
Set stop time.
DTK_TYPE_LOG
@ DTK_TYPE_LOG
Definition: define.h:596
Dtk_Log_Component_Info::~Dtk_Log_Component_Info
~Dtk_Log_Component_Info()
Dtk_Log::AddInfoMessage
Dtk_ErrorStatus AddInfoMessage(const Dtk_string &inMessage, const Dtk_string &inType, int inComponentID=-1)
Adds to log an info message.
Dtk_Log::GetIsCrash
Dtk_bool GetIsCrash()
Get if there was a crash or not
Dtk_Log::GetComponentErrorMessages
Dtk_ErrorStatus GetComponentErrorMessages(Dtk_Size_t inComponentID, Dtk_tab< Dtk_Log_Message > &outMessages)
Get error messages associated to a component from its ID.
Dtk_Log_Inventory::~Dtk_Log_Inventory
~Dtk_Log_Inventory()
Dtk_LogPtr
Dtk_SmartPtr< Dtk_Log > Dtk_LogPtr
Definition: dtk_log.hpp:10
Dtk_Log::GetGlobalInfoMessages
Dtk_ErrorStatus GetGlobalInfoMessages(Dtk_tab< Dtk_Log_Message > &outMessages)
Get global info messages.
Dtk_Log::GetInputFileName
const Dtk_string & GetInputFileName() const
Get input file name.
Dtk_Log::SetStartHour
void SetStartHour(Dtk_string inVal)
Set start hour.
Dtk_Log_Inventory::operator=
Dtk_Log_Inventory & operator=(const Dtk_Log_Inventory &inInventory)
Dtk_Log::GetXslFilePath
Dtk_string GetXslFilePath() const
Get full file path of the .xsl schema file used in .xml log file
Dtk_Log::GetComponentInventory
Dtk_ErrorStatus GetComponentInventory(Dtk_Size_t inComponentID, Dtk_Log_Inventory &outInventory)
Get inventory of component from its ID.
Dtk_Log_Inventory::AddEntity
void AddEntity(int inCount, const Dtk_string &inName)
Adds entity type and its count to inventory
Dtk_Log_Message::GetMessageInfo
const Dtk_string & GetMessageInfo() const
Get message
dtk_object.hpp
Dtk_Log::SetInputFileName
void SetInputFileName(const Dtk_string &inVal)
Set input file name.
Dtk_Log::SetWallTime
void SetWallTime(double inVal)
Set wall time.
Dtk_Log_Inventory::GetEntitiesCount
int GetEntitiesCount(Dtk_Size_t inIndex)
Get count of entities with the same type in inventory from index.