46 for (
int i = 0; i < extent; ++i)
48 std::string
const * dir;
50 std::cout <<
"\t" << *dir << std::endl;
57 for (
int i = 0; i < extent; ++i)
59 std::string
const * dir;
61 std::cout <<
"\t" << *dir << std::endl;
68 for (
int i = 0; i < extent; ++i)
70 std::string
const * dir;
72 std::cout <<
"\t" << *dir << std::endl;
83 for (
int i = 0; i < extent; ++i)
85 std::string
const * name;
87 std::cout <<
"\t" << *name << std::endl;
91 for (
int i = 0; i < extent; ++i)
93 std::string
const * name;
95 std::cout <<
"\t" << *name << std::endl;
99 for (
int i = 0; i < extent; ++i)
101 std::string
const * name;
103 std::cout <<
"\t" << *name << std::endl;
116 std::cerr <<
"Unable to create collections object." << std::endl;
121 std::string
const * project;
122 std::string
const * semVer;
125 std::cout <<
"Project : " << *project << std::endl;
126 std::cout <<
"semVer : " << *semVer << std::endl;
127 std::cout << std::endl;
131 std::string
const * name;
135 <<
" env name : " << *name << std::endl;
136 std::cout << std::endl;
139 std::string
const * name;
143 <<
" env name : " << *name << std::endl;
144 std::cout << std::endl;
147 std::string
const * name;
151 <<
" env name : " << *name << std::endl;
152 std::cout << std::endl;
157 std::string
const * name;
158 std::string
const * value;
160 std::cout <<
"config file env name : " << *name << std::endl
161 <<
"config file env value: " << *value << std::endl;
162 std::cout << std::endl;
167 std::string
const * fileName;
169 std::cout <<
"config file name : " << *fileName << std::endl;
170 std::cout << std::endl;
180 std::cout << std::endl;
190 std::cout << std::endl;
199 for (
int i = 0; i < extent; ++i)
201 std::string
const * name;
203 std::cout <<
"\t" << *name << std::endl;
207 for (
int i = 0; i < extent; ++i)
209 std::string
const * name;
211 std::cout <<
"\t" << *name << std::endl;
215 for (
int i = 0; i < extent; ++i)
217 std::string
const * name;
219 std::cout <<
"\t" << *name << std::endl;
224 std::string
const * fileName;
228 "Sim_LAMMPS_LJcut_AkersonElliott_Alchemy_PbAu",
233 <<
"Simulator Model Sim_LAMMPS_LJcut_AkersonElliott_Alchemy_PbAu" 234 <<
" has library name '" << *fileName <<
"' and is part of the '" 235 << collection.
ToString() <<
"' collection." << std::endl;
237 std::cout <<
"Error from GetItemLibraryFileNameAndCollection." 245 "Sim_LAMMPS_LJcut_AkersonElliott_Alchemy_PbAu",
248 std::cout <<
"Error from CacheListOfItemMetadataFiles." << std::endl;
251 std::string
const * fileName;
252 unsigned int fileLength;
253 unsigned char const * fileRawData;
254 int availableAsString;
255 std::string
const * fileString;
256 for (
int i = 0; i < extent; ++i)
264 std::cout <<
"Metadata File " << i <<
", " << *fileName
265 <<
", is of length " << fileLength << std::endl
266 << *fileString << std::endl;
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 namesForCollection(KIM::Collection kc, KIM::Collections *const col)
Collection const currentWorkingDirectory
The standard currentWorkingDirectory Collection.
Contains the enumeration constants and the discovery routines for the CollectionItemType Extensible E...
static int Create(Collections **const collections)
Create a new KIM API Collections object.
CollectionItemType const simulatorModel
The standard simulatorModel CollectionItemType.
Provides the interface to the KIM API Collections and is meant to be used by simulators.
CollectionItemType const portableModel
The standard portableModel CollectionItemType.
Collection const user
The standard user Collection.
static void Destroy(Collections **const collections)
Destroy a previously Collections::Create'd object.
std::string const & ToString() const
Converts the object to a string.
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...
Contains the enumeration constants and the discovery routines for the Collection Extensible Enumerati...
Collection const environmentVariable
The standard environmentVariable Collection.
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.
std::string const & ToString() const
Converts the object to a string.
CollectionItemType const modelDriver
The standard modelDriver CollectionItemType.
int GetItemNameByCollectionAndType(int const index, std::string const **const itemName) const
Get the name of an item from the cached list.
Collection const system
The standard system Collection.
void GetProjectNameAndSemVer(std::string const **const projectName, std::string const **const semVer) const
Get the KIM API project name and full Semantic Version string.
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.
void dirsForCollection(KIM::Collection const collection, KIM::Collections *const col)
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...