#include <cstdio>
#include <iostream>
#include <tobiic/ICClass.hpp>
#include <tobiic/ICSetClass.hpp>
#include <tobicore/TCException.hpp>
int main(void) {
std::cout << class_rh.
GetValue() << std::endl;
std::cout << class_rh.
GetLabel() << std::endl;
try {
std::cout << e << std::endl;
}
std::cout << ">> Has by name" << std::endl;
std::cout << classes.
Has(class_rh.
GetLabel()) << std::endl;
std::cout << classes.
Has(class_lh.
GetLabel()) << std::endl;
std::cout << classes.
Has(class_bf.
GetLabel()) << std::endl;
std::cout << ">> Has by ptr" << std::endl;
std::cout << classes.
Has(&class_rh) << std::endl;
std::cout << classes.
Has(&class_lh) << std::endl;
std::cout << classes.
Has(&class_bf) << std::endl;
std::cout << ">> Get by name" << std::endl;
try {
std::cout << (classes.
Get(class_rh.
GetLabel()))->GetLabel() << std::endl;
std::cout << e << std::endl;
}
std::cout << ">> Get by ptr" << std::endl;
try {
std::cout << (classes.
Get(&class_rh))->GetLabel() << std::endl;
std::cout << e << std::endl;
}
std::cout << ">> Remove" << std::endl;
std::cout << classes.
Has(&class_rh) << std::endl;
std::cout << classes.
Has(&class_lh) << std::endl;
std::cout << classes.
Has(&class_bf) << std::endl;
std::cout << ">> Get by name" << std::endl;
try {
std::cout << classes.
Get(class_rh.
GetLabel()) << std::endl;
std::cout << e << std::endl;
}
std::cout << ">> Get by ptr" << std::endl;
try {
std::cout << classes.
Get(&class_rh) << std::endl;
std::cout << e << std::endl;
}
return 0;
}