46 for (
int i = 0; i < extent; ++i)
50 std::cout <<
"\t" << dir << std::endl;
60 for (
int i = 0; i < extent; ++i)
64 std::cout <<
"\t" << dir << std::endl;
74 for (
int i = 0; i < extent; ++i)
78 std::cout <<
"\t" << dir << std::endl;
92 for (
int i = 0; i < extent; ++i)
96 std::cout <<
"\t" << name << std::endl;
104 for (
int i = 0; i < extent; ++i)
108 std::cout <<
"\t" << name << std::endl;
116 for (
int i = 0; i < extent; ++i)
120 std::cout <<
"\t" << name << std::endl;
133 std::cerr <<
"Unable to create collections object." << std::endl;
138 char const * project;
142 std::cout <<
"Project : " << project << std::endl;
143 std::cout <<
"semVer : " << semVer << std::endl;
144 std::cout << std::endl;
153 <<
" env name : " << name << std::endl;
154 std::cout << std::endl;
162 <<
" env name : " << name << std::endl;
163 std::cout << std::endl;
171 <<
" env name : " << name << std::endl;
172 std::cout << std::endl;
180 std::cout <<
"config file env name : " << name << std::endl
181 <<
"config file env value: " << value << std::endl;
182 std::cout << std::endl;
187 char const * fileName;
189 std::cout <<
"config file name : " << fileName << std::endl;
190 std::cout << std::endl;
199 std::cout << std::endl;
208 std::cout << std::endl;
219 for (
int i = 0; i < extent; ++i)
223 std::cout <<
"\t" << name << std::endl;
230 for (
int i = 0; i < extent; ++i)
234 std::cout <<
"\t" << name << std::endl;
241 for (
int i = 0; i < extent; ++i)
245 std::cout <<
"\t" << name << std::endl;
250 char const * fileName;
255 "Sim_LAMMPS_LJcut_AkersonElliott_Alchemy_PbAu",
260 <<
"Simulator Model Sim_LAMMPS_LJcut_AkersonElliott_Alchemy_PbAu" 261 <<
" has library name '" << fileName <<
"' and is part of the '" 265 std::cout <<
"Error from GetItemLibraryFileNameAndCollection." 274 "Sim_LAMMPS_LJcut_AkersonElliott_Alchemy_PbAu",
277 std::cout <<
"Error from CacheListOfItemMetadataFiles." << std::endl;
280 char const * fileName;
281 unsigned int fileLength;
282 unsigned char const * fileRawData;
283 int availableAsString;
284 char const * fileString;
285 for (
int i = 0; i < extent; ++i)
294 std::cout <<
"Metadata File " << i <<
", " << fileName
295 <<
", is of length " << fileLength << std::endl
296 << fileString << std::endl;
KIM_Collection const KIM_COLLECTION_environmentVariable
The standard environmentVariable Collection.
void dirsForCollection(KIM_Collection const collection, KIM_Collections *const col)
int KIM_Collections_CacheListOfDirectoryNames(KIM_Collections *const collections, KIM_Collection const collection, KIM_CollectionItemType const itemType, int *const extent)
Cache a list of directory names where a specific KIM API collection stores library files for a specif...
int KIM_Collections_GetItemMetadataFile(KIM_Collections *const collections, int const index, char const **const fileName, unsigned int *const fileLength, unsigned char const **const fileRawData, int *const availableAsString, char const **const fileString)
Get the name and content of one of an item's metadata files.
int KIM_Collections_GetEnvironmentVariableName(KIM_Collections *const collections, KIM_CollectionItemType const itemType, char const **const name)
Get the names of environment variables that store configuration settings for the KIM::COLLECTION::env...
KIM_CollectionItemType const KIM_COLLECTION_ITEM_TYPE_simulatorModel
The standard simulatorModel CollectionItemType.
KIM_Collection const KIM_COLLECTION_system
The standard system Collection.
KIM_Collection const KIM_COLLECTION_currentWorkingDirectory
The standard currentWorkingDirectory Collection.
char const * KIM_Collection_ToString(KIM_Collection const collection)
Converts the object to a string.
int KIM_Collections_GetItemNameByType(KIM_Collections *const collections, int const index, char const **const itemName)
Get the name of an item from the cached list.
An Extensible Enumeration for the Collection's supported by the KIM API.
int KIM_Collections_CacheListOfItemMetadataFiles(KIM_Collections *const collections, KIM_CollectionItemType const itemType, char const *const itemName, int *const extent)
Cache a list of an item's metadata files.
int KIM_Collections_GetItemLibraryFileNameAndCollection(KIM_Collections *const collections, KIM_CollectionItemType const itemType, char const *const itemName, char const **const fileName, KIM_Collection *const collection)
Get the item's library file name and its KIM::Collection.
void KIM_Collections_GetConfigurationFileName(KIM_Collections *const collections, char const **const fileName)
Get the absolute file and path name of the KIM API user configuration file.
KIM_CollectionItemType const KIM_COLLECTION_ITEM_TYPE_portableModel
The standard portableModel CollectionItemType.
char const * KIM_CollectionItemType_ToString(KIM_CollectionItemType const collectionItemType)
Converts the object to a string.
KIM_Collection const KIM_COLLECTION_user
The standard user Collection.
int KIM_Collections_GetDirectoryName(KIM_Collections *const collections, int const index, char const **const directoryName)
Get the name of a directory from the cached list.
int KIM_Collections_CacheListOfItemNamesByType(KIM_Collections *const collections, KIM_CollectionItemType const itemType, int *const extent)
Cache a list of all item names of a specific type in the KIM API collections.
void KIM_Collections_GetProjectNameAndSemVer(KIM_Collections *const collections, char const **const projectName, char const **const semVer)
Get the KIM API project name and full Semantic Version string.
int KIM_Collections_CacheListOfItemNamesByCollectionAndType(KIM_Collections *const collections, KIM_Collection const collection, KIM_CollectionItemType const itemType, int *const extent)
Cache a list of all item names of a specific type in a specific collection.
void KIM_Collections_Destroy(KIM_Collections **const collections)
Destroy a previously Collections::Create'd object.
KIM_CollectionItemType const KIM_COLLECTION_ITEM_TYPE_modelDriver
The standard modelDriver CollectionItemType.
void KIM_Collections_GetConfigurationFileEnvironmentVariable(KIM_Collections *const collections, char const **const name, char const **const value)
Get the name and value of the environment variable that stores the name of the KIM API user configura...
void namesForCollection(KIM_Collection kc, KIM_Collections *const col)
struct KIM_Collections KIM_Collections
Provides the interface to the KIM API Collections and is meant to be used by simulators.
int KIM_Collections_Create(KIM_Collections **const collections)
Create a new KIM API Collections object.
int KIM_Collections_GetItemNameByCollectionAndType(KIM_Collections *const collections, int const index, char const **const itemName)
Get the name of an item from the cached list.