First work for LibPack8 and PropertyUUID
This commit is contained in:
parent
a224d93d8c
commit
9396e5e02d
|
@ -47,8 +47,15 @@ public:
|
|||
const std::string& getValue(void) const;
|
||||
static std::string createUuid(void);
|
||||
|
||||
/// raw data
|
||||
unsigned long Data1;
|
||||
unsigned short Data2;
|
||||
unsigned short Data3;
|
||||
unsigned char Data4[ 8 ];
|
||||
|
||||
private:
|
||||
std::string _uuid;
|
||||
|
||||
};
|
||||
|
||||
} //namespace Base
|
||||
|
|
|
@ -30,6 +30,9 @@
|
|||
#include <Base/Console.h>
|
||||
#include <Base/Interpreter.h>
|
||||
|
||||
#include "Item.h"
|
||||
#include "ItemAssembly.h"
|
||||
#include "ItemPart.h"
|
||||
|
||||
extern struct PyMethodDef Assembly_methods[];
|
||||
|
||||
|
@ -61,7 +64,9 @@ void AssemblyExport initAssembly()
|
|||
// call PyType_Ready, otherwise we run into a segmentation fault, later on.
|
||||
// This function is responsible for adding inherited slots from a type's base class.
|
||||
|
||||
//Assembly::FeatureViewPart ::init();
|
||||
Assembly::Item ::init();
|
||||
Assembly::ItemAssembly ::init();
|
||||
Assembly::ItemPart ::init();
|
||||
}
|
||||
|
||||
} // extern "C"
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
if(MSVC)
|
||||
add_definitions(-DHAVE_ACOSH -DHAVE_ASINH -DHAVE_ATANH)
|
||||
else(MSVC)
|
||||
add_definitions(-DHAVE_LIMITS_H -DHAVE_CONFIG_H)
|
||||
endif(MSVC)
|
||||
|
||||
include_directories(
|
||||
${CMAKE_SOURCE_DIR}/src
|
||||
|
|
|
@ -39,7 +39,9 @@ PROPERTY_SOURCE(Assembly::Item, Part::Feature)
|
|||
|
||||
Item::Item()
|
||||
{
|
||||
ADD_PROPERTY(Model,(0));
|
||||
ADD_PROPERTY(Id,(0));
|
||||
ADD_PROPERTY(Name,(0));
|
||||
ADD_PROPERTY(Description,(0));
|
||||
}
|
||||
|
||||
short Item::mustExecute() const
|
||||
|
|
|
@ -38,8 +38,9 @@ class AssemblyExport Item : public Part::Feature
|
|||
public:
|
||||
Item();
|
||||
|
||||
App::PropertyLinkList Model;
|
||||
App::PropertyLink Tip;
|
||||
App::PropertyString Id;
|
||||
App::PropertyString Name ;
|
||||
App::PropertyString Description ;
|
||||
|
||||
/** @name methods override feature */
|
||||
//@{
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
if(MSVC)
|
||||
add_definitions(-DHAVE_ACOSH -DHAVE_ASINH -DHAVE_ATANH)
|
||||
else(MSVC)
|
||||
add_definitions(-DHAVE_LIMITS_H -DHAVE_CONFIG_H)
|
||||
endif(MSVC)
|
||||
|
||||
include_directories(
|
||||
${CMAKE_SOURCE_DIR}/src
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
|
|
Loading…
Reference in New Issue
Block a user