Files
IACore/Src/IACoreTest/imp/cpp/Main.cpp
2025-10-24 21:11:23 +05:30

36 lines
906 B
C++

#include <IACore/File.hpp>
#include <IACore/Logger.hpp>
#include <IACore/Map.hpp>
#include <IACore/Vector.hpp>
#include <IACore/Process.hpp>
#include <IACore/Environment.hpp>
using namespace ia;
template<typename _value_type> VOID print(IN CONST Span<_value_type> &s)
{
for (const auto &v : s)
Logger::Info("IACore", v);
}
int main(int argc, char *argv[])
{
/*ector<int> v1{10, 20, 32};
print(v1);
List<int> l1;
Map<String, int> m1;
m1["sdd"] = 2;
m1["bx"] = 5;
for (const auto &v : m1)
printf("%s, %i\n", v->Key.c_str(), v->Value);
SubProcess p("clang++");
p.Launch("a.cpp", [](IN CONST String &line) { printf("[\n%s\n]\n", line.c_str()); });*/
printf("[%s]\n", Environment::GetVar("IAEDK_ROOT").c_str());
Environment::SetVar("IAEDK_ROOT", "C:\\IAEDK");
printf("[%s]\n", Environment::GetVar("IAEDK_ROOT").c_str());
return 0;
}