34 #ifndef KIM_COLLECTIONS_HPP_ 35 #define KIM_COLLECTIONS_HPP_ 44 class CollectionItemType;
45 class CollectionsImplementation;
191 std::string
const & itemName,
192 std::string
const **
const fileName,
212 std::string
const & itemName,
257 std::string
const **
const fileName,
258 unsigned int *
const fileLength,
259 unsigned char const **
const fileRawData,
260 int *
const availableAsString,
261 std::string
const **
const fileString)
const;
303 std::string
const **
const itemName)
const;
349 std::string
const **
const itemName)
const;
374 std::string
const & itemName,
375 std::string
const **
const fileName)
const;
398 std::string
const & itemName,
446 std::string
const **
const fileName,
447 unsigned int *
const fileLength,
448 unsigned char const **
const fileRawData,
449 int *
const availableAsString,
450 std::string
const **
const fileString)
const;
472 std::string
const **
const semVer)
const;
490 std::string
const **
const name)
const;
513 std::string
const **
const name, std::string
const **
const value)
const;
577 std::string
const **
const directoryName)
const;
587 void SetLogID(std::string
const & logID);
617 CollectionsImplementation * pimpl;
621 #endif // KIM_COLLECTIONS_HPP_ int CacheListOfItemMetadataFiles(CollectionItemType const itemType, std::string const &itemName, int *const extent)
Cache a list of an item's metadata files.
int GetItemLibraryFileNameAndCollection(CollectionItemType const itemType, std::string const &itemName, std::string const **const fileName, Collection *const collection) const
Get the item's library file name and its KIM::Collection.
int CacheListOfItemNamesByCollectionAndType(Collection const collection, CollectionItemType const itemType, int *const extent)
Cache a list of all item names of a specific type in a specific collection.
int GetItemNameByType(int const index, std::string const **const itemName) const
Get the name of an item from the cached list.
int GetEnvironmentVariableName(CollectionItemType const itemType, std::string const **const name) const
Get the names of environment variables that store configuration settings for the KIM::COLLECTION::env...
void SetLogID(std::string const &logID)
Set the identity of the Log object associated with the Collections object.
void PushLogVerbosity(LogVerbosity const logVerbosity)
Push a new LogVerbosity onto the Collections object's Log object verbosity stack. ...
static int Create(Collections **const collections)
Create a new KIM API Collections object.
Provides the interface to the KIM API Collections and is meant to be used by simulators.
An Extensible Enumeration for the CollectionItemType's supported by the KIM API.
static void Destroy(Collections **const collections)
Destroy a previously Collections::Create'd object.
int GetItemLibraryFileNameByCollectionAndType(Collection const collection, CollectionItemType const itemType, std::string const &itemName, std::string const **const fileName) const
Get the item's library file name.
An Extensible Enumeration for the LogVerbosity's supported by the KIM API.
void GetConfigurationFileEnvironmentVariable(std::string const **const name, std::string const **const value) const
Get the name and value of the environment variable that stores the name of the KIM API user configura...
An Extensible Enumeration for the Collection's supported by the KIM API.
int GetDirectoryName(int const index, std::string const **const directoryName) const
Get the name of a directory from the cached list.
int CacheListOfItemNamesByType(CollectionItemType const itemType, int *const extent)
Cache a list of all item names of a specific type in the KIM API collections.
int GetItemMetadataFileByCollectionAndType(int const index, std::string const **const fileName, unsigned int *const fileLength, unsigned char const **const fileRawData, int *const availableAsString, std::string const **const fileString) const
Get the name and content of one of an item's metadata files.
void PopLogVerbosity()
Pop a LogVerbosity from the Collections object's Log object verbosity stack.
int GetItemType(std::string const &itemName, CollectionItemType *const itemType) const
Get the KIM::CollectionItemType of the item in the KIM API collections with a specific name...
int GetItemNameByCollectionAndType(int const index, std::string const **const itemName) const
Get the name of an item from the cached list.
void GetProjectNameAndSemVer(std::string const **const projectName, std::string const **const semVer) const
Get the KIM API project name and full Semantic Version string.
int CacheListOfItemMetadataFilesByCollectionAndType(Collection const collection, CollectionItemType const itemType, std::string const &itemName, int *const extent)
Cache a list of an item's metadata files.
void GetConfigurationFileName(std::string const **const fileName) const
Get the absolute file and path name of the KIM API user configuration file.
int GetItemMetadataFile(int const index, std::string const **const fileName, unsigned int *const fileLength, unsigned char const **const fileRawData, int *const availableAsString, std::string const **const fileString) const
Get the name and content of one of an item's metadata files.
int CacheListOfDirectoryNames(Collection const collection, CollectionItemType const itemType, int *const extent)
Cache a list of directory names where a specific KIM API collection stores library files for a specif...