Commit 6ac51161 authored by Alexander Shabarshin's avatar Alexander Shabarshin

some changes

parent 44e83f33
......@@ -311,9 +311,9 @@ namespace TRC
public:
Connection(const char *name)
Connection(const char *s)
{
n = new std::string(name);
n = new std::string(s);
c[0] = c[1] = c[2] = NC;
}
......@@ -356,10 +356,9 @@ namespace TRC
int apply(char a);
char operator<<(char a)
int operator<<(char a)
{
apply(a);
return a;
return apply(a);
}
};
......@@ -410,13 +409,28 @@ namespace TRC
public:
std::string *n;
Entity()
{
sys = System::getInstance();
n = nullptr;
}
virtual ~Entity()
{
if(n!=nullptr) delete n;
}
const std::string & name()
{
return *n;
}
void name(const char* s)
{
if(n!=nullptr) delete n;
n = new std::string(s);
}
int at(const char* n, unsigned short k = 1, char c = NC)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment