43 for (
int i = 0; i < extent; ++i)
45 std::string
const * dir;
47 std::cout <<
"\t" << *dir << std::endl;
54 for (
int i = 0; i < extent; ++i)
56 std::string
const * dir;
58 std::cout <<
"\t" << *dir << std::endl;
65 for (
int i = 0; i < extent; ++i)
67 std::string
const * dir;
69 std::cout <<
"\t" << *dir << std::endl;
80 for (
int i = 0; i < extent; ++i)
82 std::string
const * name;
84 std::cout <<
"\t" << *name << std::endl;
88 for (
int i = 0; i < extent; ++i)
90 std::string
const * name;
92 std::cout <<
"\t" << *name << std::endl;
96 for (
int i = 0; i < extent; ++i)
98 std::string
const * name;
100 std::cout <<
"\t" << *name << std::endl;
113 std::cerr <<
"Unable to create collections object." << std::endl;
118 std::string
const * project;
119 std::string
const * semVer;
122 std::cout <<
"Project : " << *project << std::endl;
123 std::cout <<
"semVer : " << *semVer << std::endl;
124 std::cout << std::endl;
128 std::string
const * name;
132 <<
" env name : " << *name << std::endl;
133 std::cout << std::endl;
136 std::string
const * name;
140 <<
" env name : " << *name << std::endl;
141 std::cout << std::endl;
144 std::string
const * name;
148 <<
" env name : " << *name << std::endl;
149 std::cout << std::endl;
154 std::string
const * name;
155 std::string
const * value;
157 std::cout <<
"config file env name : " << *name << std::endl
158 <<
"config file env value: " << *value << std::endl;
159 std::cout << std::endl;
164 std::string
const * fileName;
166 std::cout <<
"config file name : " << *fileName << std::endl;
167 std::cout << std::endl;
177 std::cout << std::endl;
187 std::cout << std::endl;
196 for (
int i = 0; i < extent; ++i)
198 std::string
const * name;
200 std::cout <<
"\t" << *name << std::endl;
204 for (
int i = 0; i < extent; ++i)
206 std::string
const * name;
208 std::cout <<
"\t" << *name << std::endl;
212 for (
int i = 0; i < extent; ++i)
214 std::string
const * name;
216 std::cout <<
"\t" << *name << std::endl;
221 std::string
const * fileName;
225 "Sim_LAMMPS_LJcut_AkersonElliott_Alchemy_PbAu",
230 <<
"Simulator Model Sim_LAMMPS_LJcut_AkersonElliott_Alchemy_PbAu" 231 <<
" has library name '" << *fileName <<
"' and is part of the '" 232 << collection.
ToString() <<
"' collection." << std::endl;
234 std::cout <<
"Error from GetItemLibraryFileNameAndCollection." 242 "Sim_LAMMPS_LJcut_AkersonElliott_Alchemy_PbAu",
245 std::cout <<
"Error from CacheListOfItemMetadataFiles." << std::endl;
248 std::string
const * fileName;
249 unsigned int fileLength;
250 unsigned char const * fileRawData;
251 int availableAsString;
252 std::string
const * fileString;
253 for (
int i = 0; i < extent; ++i)
261 std::cout <<
"Metadata File " << i <<
", " << *fileName
262 <<
", is of length " << fileLength << std::endl
263 << *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...