47 for (
int i = 0; i < extent; ++i)
49 std::string
const * dir;
51 std::cout <<
"\t" << *dir << std::endl;
58 for (
int i = 0; i < extent; ++i)
60 std::string
const * dir;
62 std::cout <<
"\t" << *dir << std::endl;
69 for (
int i = 0; i < extent; ++i)
71 std::string
const * dir;
73 std::cout <<
"\t" << *dir << std::endl;
84 for (
int i = 0; i < extent; ++i)
86 std::string
const * name;
88 std::cout <<
"\t" << *name << std::endl;
92 for (
int i = 0; i < extent; ++i)
94 std::string
const * name;
96 std::cout <<
"\t" << *name << std::endl;
100 for (
int i = 0; i < extent; ++i)
102 std::string
const * name;
104 std::cout <<
"\t" << *name << std::endl;
117 std::cerr <<
"Unable to create collections object." << std::endl;
122 std::string
const * project;
123 std::string
const * semVer;
126 std::cout <<
"Project : " << *project << std::endl;
127 std::cout <<
"semVer : " << *semVer << std::endl;
128 std::cout << std::endl;
132 std::string
const * name;
136 <<
" env name : " << *name << std::endl;
137 std::cout << std::endl;
140 std::string
const * name;
144 <<
" env name : " << *name << std::endl;
145 std::cout << std::endl;
148 std::string
const * name;
152 <<
" env name : " << *name << std::endl;
153 std::cout << std::endl;
158 std::string
const * name;
159 std::string
const * value;
161 std::cout <<
"config file env name : " << *name << std::endl
162 <<
"config file env value: " << *value << std::endl;
163 std::cout << std::endl;
168 std::string
const * fileName;
170 std::cout <<
"config file name : " << *fileName << std::endl;
171 std::cout << std::endl;
181 std::cout << std::endl;
191 std::cout << std::endl;
200 for (
int i = 0; i < extent; ++i)
202 std::string
const * name;
204 std::cout <<
"\t" << *name << std::endl;
208 for (
int i = 0; i < extent; ++i)
210 std::string
const * name;
212 std::cout <<
"\t" << *name << std::endl;
216 for (
int i = 0; i < extent; ++i)
218 std::string
const * name;
220 std::cout <<
"\t" << *name << std::endl;
225 std::string
const * fileName;
229 "Sim_LAMMPS_LJcut_AkersonElliott_Alchemy_PbAu",
234 <<
"Simulator Model Sim_LAMMPS_LJcut_AkersonElliott_Alchemy_PbAu" 235 <<
" has library name '" << *fileName <<
"' and is part of the '" 236 << collection.
ToString() <<
"' collection." << std::endl;
238 std::cout <<
"Error from GetItemLibraryFileNameAndCollection." 246 "Sim_LAMMPS_LJcut_AkersonElliott_Alchemy_PbAu",
249 std::cout <<
"Error from CacheListOfItemMetadataFiles." << std::endl;
252 std::string
const * fileName;
253 unsigned int fileLength;
254 unsigned char const * fileRawData;
255 int availableAsString;
256 std::string
const * fileString;
257 for (
int i = 0; i < extent; ++i)
265 std::cout <<
"Metadata File " << i <<
", " << *fileName
266 <<
", is of length " << fileLength << std::endl
267 << *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...