#include <UtilityServices.h>
Public Member Functions | |
| virtual DateTime * | getDateTime ()=0 |
| virtual void | destroyDateTime (DateTime *dt)=0 |
| virtual Progress * | getProgress (bool threadSafe=false)=0 |
| virtual void | destroyProgress (Progress *prog)=0 |
| virtual MessageLogMgr * | getMessageLog () const =0 |
| virtual unsigned int | getNumProcessors () const =0 |
| virtual std::string | getDefaultClassification () const =0 |
| virtual const std::vector < std::string > & | getFileControls () const =0 |
| virtual const std::vector < std::string > & | getFileDowngrades () const =0 |
| virtual const std::vector < std::string > & | getDeclassificationTypes () const =0 |
| virtual const std::vector < std::string > & | getClassificationReasons () const =0 |
| virtual const std::vector < std::string > & | getDeclassificationExemptions () const =0 |
| virtual const std::vector < std::string > & | getFileReleasing () const =0 |
| virtual const std::vector < std::string > & | getCountryCodes () const =0 |
| virtual const std::vector < std::string > & | getSystems () const =0 |
| virtual const std::vector < std::string > & | getCodewords () const =0 |
| virtual ColorType | getAutoColor (int color_index) const =0 |
| virtual size_t | getMaxMemoryBlockSize ()=0 |
| virtual size_t | getTotalPhysicalMemory ()=0 |
| virtual size_t | getAvailableVirtualMemory ()=0 |
| virtual std::string | getTextFromFile (const std::string &filename)=0 |
Protected Member Functions | |
| virtual | ~UtilityServices () |
Access to instantiation of Utilities objects found in the Interfaces. These are inherited from Serializable, and therefore cannot be created with the ObjectFactory.
Definition at line 32 of file UtilityServices.h.
| virtual UtilityServices::~UtilityServices | ( | ) | [protected, virtual] |
This will be cleaned up during application close.
Plug-ins do not need to destroy it.
Definition at line 222 of file UtilityServices.h.
| virtual DateTime* UtilityServices::getDateTime | ( | ) | [pure virtual] |
| virtual void UtilityServices::destroyDateTime | ( | DateTime * | dt | ) | [pure virtual] |
| virtual Progress* UtilityServices::getProgress | ( | bool | threadSafe = false |
) | [pure virtual] |
Instantiate an object that can be used with the Progress interface.
| threadSafe | should a thread safe Progress be created? This is needed for background plugins. If the plugin is not running in the background, you should use a non-thread safe version as there is less overhead |
| virtual void UtilityServices::destroyProgress | ( | Progress * | prog | ) | [pure virtual] |
| virtual MessageLogMgr* UtilityServices::getMessageLog | ( | ) | const [pure virtual] |
| virtual unsigned int UtilityServices::getNumProcessors | ( | ) | const [pure virtual] |
Returns the number of processors on the computer.
| virtual std::string UtilityServices::getDefaultClassification | ( | ) | const [pure virtual] |
Returns the default classification level, based on the value in the first row of the SecurityMarkings/Classification.txt file.
| virtual const std::vector<std::string>& UtilityServices::getFileControls | ( | ) | const [pure virtual] |
Returns the file control security codes.
| virtual const std::vector<std::string>& UtilityServices::getFileDowngrades | ( | ) | const [pure virtual] |
Returns the file downgrade security codes.
| virtual const std::vector<std::string>& UtilityServices::getDeclassificationTypes | ( | ) | const [pure virtual] |
Returns the declassification type security codes.
| virtual const std::vector<std::string>& UtilityServices::getClassificationReasons | ( | ) | const [pure virtual] |
Returns the classification reason security codes.
| virtual const std::vector<std::string>& UtilityServices::getDeclassificationExemptions | ( | ) | const [pure virtual] |
Returns the declassification exemptions security codes.
| virtual const std::vector<std::string>& UtilityServices::getFileReleasing | ( | ) | const [pure virtual] |
Returns the file releasing security codes.
| virtual const std::vector<std::string>& UtilityServices::getCountryCodes | ( | ) | const [pure virtual] |
Returns the country code security codes.
| virtual const std::vector<std::string>& UtilityServices::getSystems | ( | ) | const [pure virtual] |
Returns the system security codes.
| virtual const std::vector<std::string>& UtilityServices::getCodewords | ( | ) | const [pure virtual] |
Returns the codeword security codes.
| virtual ColorType UtilityServices::getAutoColor | ( | int | color_index | ) | const [pure virtual] |
| virtual size_t UtilityServices::getMaxMemoryBlockSize | ( | ) | [pure virtual] |
Returns the size of the largest free contiguous memory block.
Windows fragments memory with DLL's statically mapped throughout the process space. This method walks the virtual memory and determine the largest contiguous free block of memory. UNIX platforms do not have this limitation and for UNIX this method returns the available virtual memory.
| virtual size_t UtilityServices::getTotalPhysicalMemory | ( | ) | [pure virtual] |
Returns the total amount of physical memory.
| virtual size_t UtilityServices::getAvailableVirtualMemory | ( | ) | [pure virtual] |
Returns the current amount of available virtual memory.
| virtual std::string UtilityServices::getTextFromFile | ( | const std::string & | filename | ) | [pure virtual] |
Returns the contents of a file as text.
This method also works with the Qt resource system, provided that the resource can be read as text.
| filename | The name of the file to read. This file must be a text file. |