Commit d30eeb67 authored by vlad_burin's avatar vlad_burin
Browse files

Deleted unused properties creationing functions

--HG--
branch : MockCompsTest
parent 3d54ae4fb89b
......@@ -134,32 +134,17 @@ bool UBasePropCreator::CreateSimpleTypeProperty(RDK::USerStorageXML* serstorage,
CreatorProperty<PropType, TypeInt, bool>::CreatePropertyByType(serstorage, mock_unet, ptype);
return true;
}
if(type == typeid(char).name())
{
CreatorProperty<PropType, TypeInt, char>::CreatePropertyByType(serstorage, mock_unet, ptype);
return true;
}
if(type == typeid(unsigned char).name())
{
CreatorProperty<PropType, TypeInt, unsigned char>::CreatePropertyByType(serstorage, mock_unet, ptype);
return true;
}
if(type == typeid(short).name())
{
CreatorProperty<PropType, TypeInt, short>::CreatePropertyByType(serstorage, mock_unet, ptype);
return true;
}
if(type == typeid(unsigned short).name())
if(type == typeid(unsigned int).name())
{
CreatorProperty<PropType, TypeInt, unsigned short>::CreatePropertyByType(serstorage, mock_unet, ptype);
CreatorProperty<PropType, TypeInt, unsigned int>::CreatePropertyByType(serstorage, mock_unet, ptype);
return true;
}
if(type == typeid(int).name())
{
CreatorProperty<PropType, TypeInt, int>::CreatePropertyByType(serstorage, mock_unet, ptype);
return true;
}
if(type == typeid(unsigned int).name())
{
CreatorProperty<PropType, TypeInt, unsigned int>::CreatePropertyByType(serstorage, mock_unet, ptype);
return true;
......@@ -194,11 +179,6 @@ bool UBasePropCreator::CreateSimpleTypeProperty(RDK::USerStorageXML* serstorage,
CreatorProperty<PropType, TypeInt, double>::CreatePropertyByType(serstorage, mock_unet, ptype);
return true;
}
if(type == typeid(long double).name())
{
CreatorProperty<PropType, TypeInt, long double>::CreatePropertyByType(serstorage, mock_unet, ptype);
return true;
}
//throw ParseException("can't handle simple type: " + type);
return false;
......@@ -224,77 +204,11 @@ void UBasePropCreator::CreatePropertyList(RDK::USerStorageXML* serstorage, RDK::
serstorage->SelectUp();
}
if(type == typeid(bool).name())
{
CreatorProperty<PropType, TypeInt, std::list<bool> >::CreatePropertyByType(serstorage, mock_unet, ptype);
return;
}
if(type == typeid(char).name())
{
CreatorProperty<PropType, TypeInt, std::list<char> >::CreatePropertyByType(serstorage, mock_unet, ptype);
return;
}
if(type == typeid(unsigned char).name())
{
CreatorProperty<PropType, TypeInt, std::list<unsigned char> >::CreatePropertyByType(serstorage, mock_unet, ptype);
return;
}
if(type == typeid(short).name())
{
CreatorProperty<PropType, TypeInt, std::list<short> >::CreatePropertyByType(serstorage, mock_unet, ptype);
return;
}
if(type == typeid(unsigned short).name())
{
CreatorProperty<PropType, TypeInt, std::list<unsigned short> >::CreatePropertyByType(serstorage, mock_unet, ptype);
return;
}
if(type == typeid(int).name())
{
CreatorProperty<PropType, TypeInt, std::list<int> >::CreatePropertyByType(serstorage, mock_unet, ptype);
return;
}
if(type == typeid(unsigned int).name())
{
CreatorProperty<PropType, TypeInt, std::list<unsigned int> >::CreatePropertyByType(serstorage, mock_unet, ptype);
return;
}
if(type == typeid(long).name())
{
CreatorProperty<PropType, TypeInt, std::list<long> >::CreatePropertyByType(serstorage, mock_unet, ptype);
return;
}
if(type == typeid(unsigned long).name())
{
CreatorProperty<PropType, TypeInt, std::list<unsigned long> >::CreatePropertyByType(serstorage, mock_unet, ptype);
return;
}
if(type == typeid(long long).name())
{
CreatorProperty<PropType, TypeInt, std::list<long long> >::CreatePropertyByType(serstorage, mock_unet, ptype);
return;
}
if(type == typeid(unsigned long long).name())
{
CreatorProperty<PropType, TypeInt, std::list<unsigned long long> >::CreatePropertyByType(serstorage, mock_unet, ptype);
return;
}
if(type == typeid(float).name())
{
CreatorProperty<PropType, TypeInt, std::list<float> >::CreatePropertyByType(serstorage, mock_unet, ptype);
return;
}
if(type == typeid(double).name())
{
CreatorProperty<PropType, TypeInt, std::list<double> >::CreatePropertyByType(serstorage, mock_unet, ptype);
return;
}
if(type == typeid(long double).name())
{
CreatorProperty<PropType, TypeInt, std::list<long double> >::CreatePropertyByType(serstorage, mock_unet, ptype);
return;
}
}
// std::pair
......
......@@ -202,76 +202,11 @@ void UBasePropCreatorMatrix::CreatePropertyVectorOfMDMatrix(RDK::USerStorageXML*
type.erase(std::remove(type.begin(), type.end(), '>'), type.end());
type.erase(std::remove(type.begin(), type.end(), '<'), type.end());
if(type == typeid(bool).name())
{
CreatorProperty<PropType, TypeInt, MDVector<bool> >::CreatePropertyByType(serstorage,mock_unet, ptype);
return;
}
if(type == typeid(char).name())
{
CreatorProperty<PropType, TypeInt, MDVector<char> >::CreatePropertyByType(serstorage,mock_unet, ptype);
return;
}
if(type == typeid(unsigned char).name())
{
CreatorProperty<PropType, TypeInt, MDVector<unsigned char> >::CreatePropertyByType(serstorage,mock_unet, ptype);
return;
}
if(type == typeid(short).name())
{
CreatorProperty<PropType, TypeInt, MDVector<short> >::CreatePropertyByType(serstorage,mock_unet, ptype);
return;
}
if(type == typeid(unsigned short).name())
{
CreatorProperty<PropType, TypeInt, MDVector<unsigned short> >::CreatePropertyByType(serstorage,mock_unet, ptype);
return;
}
if(type == typeid(int).name())
{
CreatorProperty<PropType, TypeInt, MDVector<int> >::CreatePropertyByType(serstorage,mock_unet, ptype);
return;
}
if(type == typeid(unsigned int).name())
{
CreatorProperty<PropType, TypeInt, MDVector<unsigned int> >::CreatePropertyByType(serstorage,mock_unet, ptype);
return;
}
if(type == typeid(long).name())
{
CreatorProperty<PropType, TypeInt, MDVector<long> >::CreatePropertyByType(serstorage,mock_unet, ptype);
return;
}
if(type == typeid(unsigned long).name())
{
CreatorProperty<PropType, TypeInt, MDVector<unsigned long> >::CreatePropertyByType(serstorage,mock_unet, ptype);
return;
}
if(type == typeid(long long).name())
{
CreatorProperty<PropType, TypeInt, MDVector<long long> >::CreatePropertyByType(serstorage,mock_unet, ptype);
return;
}
if(type == typeid(unsigned long long).name())
{
CreatorProperty<PropType, TypeInt, MDVector<unsigned long long> >::CreatePropertyByType(serstorage,mock_unet, ptype);
return;
}
if(type == typeid(float).name())
{
CreatorProperty<PropType, TypeInt, MDVector<float> >::CreatePropertyByType(serstorage,mock_unet, ptype);
return;
}
if(type == typeid(double).name())
{
CreatorProperty<PropType, TypeInt, MDVector<double> >::CreatePropertyByType(serstorage,mock_unet, ptype);
return;
}
if(type == typeid(long double).name())
{
CreatorProperty<PropType, TypeInt, MDVector<long double> >::CreatePropertyByType(serstorage,mock_unet, ptype);
return;
}
}
// MDMatrix
......@@ -293,76 +228,16 @@ void UBasePropCreatorMatrix::CreatePropertyMDMatrix(RDK::USerStorageXML* serstor
std::string matrix_type = type;
if(type == typeid(bool).name())
{
CreatorProperty<PropType, TypeInt, MDMatrix<bool> >::CreatePropertyByType(serstorage,mock_unet, ptype);
return;
}
if(type == typeid(char).name())
{
CreatorProperty<PropType, TypeInt, MDMatrix<char> >::CreatePropertyByType(serstorage,mock_unet, ptype);
return;
}
if(type == typeid(unsigned char).name())
{
CreatorProperty<PropType, TypeInt, MDMatrix<unsigned char> >::CreatePropertyByType(serstorage,mock_unet, ptype);
return;
}
if(type == typeid(short).name())
{
CreatorProperty<PropType, TypeInt, MDMatrix<short> >::CreatePropertyByType(serstorage,mock_unet, ptype);
return;
}
if(type == typeid(unsigned short).name())
{
CreatorProperty<PropType, TypeInt, MDMatrix<unsigned short> >::CreatePropertyByType(serstorage,mock_unet, ptype);
return;
}
if(type == typeid(int).name())
{
CreatorProperty<PropType, TypeInt, MDMatrix<int> >::CreatePropertyByType(serstorage,mock_unet, ptype);
return;
}
if(type == typeid(unsigned int).name())
{
CreatorProperty<PropType, TypeInt, MDMatrix<unsigned int> >::CreatePropertyByType(serstorage,mock_unet, ptype);
return;
}
if(type == typeid(long).name())
{
CreatorProperty<PropType, TypeInt, MDMatrix<long> >::CreatePropertyByType(serstorage,mock_unet, ptype);
return;
}
if(type == typeid(unsigned long).name())
{
CreatorProperty<PropType, TypeInt, MDMatrix<unsigned long> >::CreatePropertyByType(serstorage,mock_unet, ptype);
return;
}
if(type == typeid(long long).name())
{
CreatorProperty<PropType, TypeInt, MDMatrix<long long> >::CreatePropertyByType(serstorage,mock_unet, ptype);
return;
}
if(type == typeid(unsigned long long).name())
{
CreatorProperty<PropType, TypeInt, MDMatrix<unsigned long long> >::CreatePropertyByType(serstorage,mock_unet, ptype);
return;
}
if(type == typeid(float).name())
{
CreatorProperty<PropType, TypeInt, MDMatrix<float> >::CreatePropertyByType(serstorage,mock_unet, ptype);
return;
}
if(type == typeid(double).name())
{
CreatorProperty<PropType, TypeInt, MDMatrix<double> >::CreatePropertyByType(serstorage,mock_unet, ptype);
return;
}
if(type == typeid(long double).name())
{
CreatorProperty<PropType, TypeInt, MDMatrix<long double> >::CreatePropertyByType(serstorage,mock_unet, ptype);
return;
}
}
// MDVector
......@@ -384,76 +259,16 @@ void UBasePropCreatorMatrix::CreatePropertyMDVector(RDK::USerStorageXML* serstor
std::string matrix_type = type;
if(type == typeid(bool).name())
{
CreatorProperty<PropType, TypeInt, MDVector<bool> >::CreatePropertyByType(serstorage,mock_unet, ptype);
return;
}
if(type == typeid(char).name())
{
CreatorProperty<PropType, TypeInt, MDVector<char> >::CreatePropertyByType(serstorage,mock_unet, ptype);
return;
}
if(type == typeid(unsigned char).name())
{
CreatorProperty<PropType, TypeInt, MDVector<unsigned char> >::CreatePropertyByType(serstorage,mock_unet, ptype);
return;
}
if(type == typeid(short).name())
{
CreatorProperty<PropType, TypeInt, MDVector<short> >::CreatePropertyByType(serstorage,mock_unet, ptype);
return;
}
if(type == typeid(unsigned short).name())
{
CreatorProperty<PropType, TypeInt, MDVector<unsigned short> >::CreatePropertyByType(serstorage,mock_unet, ptype);
return;
}
if(type == typeid(int).name())
{
CreatorProperty<PropType, TypeInt, MDVector<int> >::CreatePropertyByType(serstorage,mock_unet, ptype);
return;
}
if(type == typeid(unsigned int).name())
{
CreatorProperty<PropType, TypeInt, MDVector<unsigned int> >::CreatePropertyByType(serstorage,mock_unet, ptype);
return;
}
if(type == typeid(long).name())
{
CreatorProperty<PropType, TypeInt, MDVector<long> >::CreatePropertyByType(serstorage,mock_unet, ptype);
return;
}
if(type == typeid(unsigned long).name())
{
CreatorProperty<PropType, TypeInt, MDVector<unsigned long> >::CreatePropertyByType(serstorage,mock_unet, ptype);
return;
}
if(type == typeid(long long).name())
{
CreatorProperty<PropType, TypeInt, MDVector<long long> >::CreatePropertyByType(serstorage,mock_unet, ptype);
return;
}
if(type == typeid(unsigned long long).name())
{
CreatorProperty<PropType, TypeInt, MDVector<unsigned long long> >::CreatePropertyByType(serstorage,mock_unet, ptype);
return;
}
if(type == typeid(float).name())
{
CreatorProperty<PropType, TypeInt, MDVector<float> >::CreatePropertyByType(serstorage,mock_unet, ptype);
return;
}
if(type == typeid(double).name())
{
CreatorProperty<PropType, TypeInt, MDVector<double> >::CreatePropertyByType(serstorage,mock_unet, ptype);
return;
}
if(type == typeid(long double).name())
{
CreatorProperty<PropType, TypeInt, MDVector<long double> >::CreatePropertyByType(serstorage,mock_unet, ptype);
return;
}
}
// MVector size - 2,3,4 - double
......
......@@ -85,61 +85,11 @@ void UBasePropCreatorVector::CreatePropertyVector(RDK::USerStorageXML* serstorag
}
if(type == typeid(bool).name())
{
CreatorProperty<PropType, TypeInt, std::vector<bool> >::CreatePropertyByType(serstorage, mock_unet, ptype);
return;
}
if(type == typeid(char).name())
{
CreatorProperty<PropType, TypeInt, std::vector<char> >::CreatePropertyByType(serstorage, mock_unet, ptype);
return;
}
if(type == typeid(unsigned char).name())
{
CreatorProperty<PropType, TypeInt, std::vector<unsigned char> >::CreatePropertyByType(serstorage, mock_unet, ptype);
return;
}
if(type == typeid(short).name())
{
CreatorProperty<PropType, TypeInt, std::vector<short> >::CreatePropertyByType(serstorage, mock_unet, ptype);
return;
}
if(type == typeid(unsigned short).name())
{
CreatorProperty<PropType, TypeInt, std::vector<unsigned short> >::CreatePropertyByType(serstorage, mock_unet, ptype);
return;
}
if(type == typeid(int).name())
{
CreatorProperty<PropType, TypeInt, std::vector<int> >::CreatePropertyByType(serstorage, mock_unet, ptype);
return;
}
if(type == typeid(unsigned int).name())
{
CreatorProperty<PropType, TypeInt, std::vector<unsigned int> >::CreatePropertyByType(serstorage, mock_unet, ptype);
return;
}
if(type == typeid(long).name())
{
CreatorProperty<PropType, TypeInt, std::vector<long> >::CreatePropertyByType(serstorage, mock_unet, ptype);
return;
}
if(type == typeid(unsigned long).name())
{
CreatorProperty<PropType, TypeInt, std::vector<unsigned long> >::CreatePropertyByType(serstorage, mock_unet, ptype);
return;
}
if(type == typeid(long long).name())
{
CreatorProperty<PropType, TypeInt, std::vector<long long> >::CreatePropertyByType(serstorage, mock_unet, ptype);
return;
}
if(type == typeid(unsigned long long).name())
{
CreatorProperty<PropType, TypeInt, std::vector<unsigned long long> >::CreatePropertyByType(serstorage, mock_unet, ptype);
return;
}
if(type == typeid(float).name())
{
CreatorProperty<PropType, TypeInt, std::vector<float> >::CreatePropertyByType(serstorage, mock_unet, ptype);
......@@ -150,11 +100,6 @@ void UBasePropCreatorVector::CreatePropertyVector(RDK::USerStorageXML* serstorag
CreatorProperty<PropType, TypeInt, std::vector<double> >::CreatePropertyByType(serstorage, mock_unet, ptype);
return;
}
if(type == typeid(long double).name())
{
CreatorProperty<PropType, TypeInt, std::vector<long double> >::CreatePropertyByType(serstorage, mock_unet, ptype);
return;
}
if(type == "UColorT")
{
CreatorProperty<PropType, TypeInt, std::vector<UColorT> >::CreatePropertyByType(serstorage, mock_unet, ptype);
......
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