Baigudin Software avatar
Baigudin Software logo
home
ru region
en region

PHP DOM Builder is unveiled in second revision

In 2014 year PHP DOM Builder library was unveiled at the first time within the framework of Baigudin Software project. Two years have been left after that moment and today we are glad to offer the second generation that is PHP DOM Builder Revision 2.

Class «oscore::Object»

Root class of the system class hierarchy.

  • oscore::Object

public: Object();

Constructor.

public: virtual ~Object();

Destructor.

public: virtual int32 getError() const;

Get error number.

Returns:
error code or zero.

public: virtual const char* getErrorString(int32 error);

Get error string.

Parameters:
error — error number.

Returns:
pointer to error string.

public: bool onHeap();

Check if this Object is allocated.

Returns:
true if this object is alloceted in heap.

protected: static void* memAdd(void* addr, uint32 size);

Add new memory page.

Parameters:
addr — address of memory page.
size — size of memory page in sizeof.

Returns:
real memory page address.

protected: static void* memAlloc(uint32 size);

Allocate new memory block in heap.

Parameters:
size — size in byte.

Returns:
pointer to allocated memory address or NULL, if error.

protected: static bool memFree(void* ptr);

Free allocated memory block.

Parameters:
ptr — pointer to allocated memory address.

Returns:
true if block is removed.

protected: static bool memRemove(void* addr);

Remove memory page.

Parameters:
addr — real memory page address.

Returns:
true if page is removed.

protected: void setError(int32 error);

Set error number.

Parameters:
error — error number of enum Error.

Back to class list