Skip to content
Snippets Groups Projects
Commit 92cab935 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

prepare Object constructors

parent 9a568746
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,11 @@ ...@@ -6,7 +6,11 @@
*/ */
   
#include "Object.h" #include "Object.h"
#include "../core/xmlApi.hpp" #include <core/xmlApi.hpp>
#include <primitive/Integer.h>
#include <primitive/Character.h>
#include <primitive/String.h>
#include <container/ObjectsPair.h>
   
namespace alib { namespace alib {
   
...@@ -14,6 +18,24 @@ void Object::inc ( ) { ...@@ -14,6 +18,24 @@ void Object::inc ( ) {
this->operator ++ ( ); this->operator ++ ( );
} }
   
Object::Object ( int number ) : alib::WrapperBase < ObjectBase > ( primitive::Integer ( number ) ) {
}
Object::Object ( int number1, int number2 ) : Object ( Object { primitive::Integer ( number1 ) }, Object { primitive::Integer ( number2 ) } ) {
}
Object::Object ( Object object1, Object object2 ) : alib::WrapperBase < ObjectBase > ( container::ObjectsPair < Object, Object > { std::make_pair ( std::move ( object1 ), std::move ( object2 ) ) } ) {
}
Object::Object ( char character ) : alib::WrapperBase < ObjectBase > ( primitive::Character ( character ) ) {
}
Object::Object ( std::string string ) : alib::WrapperBase < ObjectBase > ( primitive::String ( std::move ( string ) ) ) {
}
Object::Object ( const char * string ) : Object ( ( std::string ) string ) {
}
auto ObjectDeleter = xmlApi < alib::Object >::InputContextDeleter ( ); auto ObjectDeleter = xmlApi < alib::Object >::InputContextDeleter ( );
   
} }
...@@ -20,6 +20,13 @@ class Object : public alib::WrapperBase < ObjectBase > { ...@@ -20,6 +20,13 @@ class Object : public alib::WrapperBase < ObjectBase > {
using alib::WrapperBase < ObjectBase >::WrapperBase; using alib::WrapperBase < ObjectBase >::WrapperBase;
   
public: public:
explicit Object ( Object label1, Object label2 );
explicit Object ( int number );
explicit Object ( int number1, int number2 );
explicit Object ( char character );
explicit Object ( std::string string );
explicit Object ( const char * string );
void inc ( ); void inc ( );
   
static const std::string & getXmlTagRefName() { static const std::string & getXmlTagRefName() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment