News
Articles
Articles
Presentation of fltk version2
- Friday 31st December
Introduction :
Please visit http://www.fltk.org/ to have some information about this C++ GUI toolkit.
You can find lot of GUI toolkit. But I mean to start learn principle of a GUI toolkit, it’s better to start with a light and multi-platform.
Example :
I start with a easy example who use fltk version2. I choose version 2 of fltk while this version respect more actually C++ coding.
Attached source code and screenshot :
(...)
Design Pattern : Creational Pattern Singleton - Monday 9th August
Introduction
It’s important for some classes to have exactly one instance. For example have only one GUI, one engine.
To implement a singleton pattern, a common way is to define a class that has a protected constructor and a public static member function to create and retrieve an instance of the class.
Implementation
class Singleton
public: static Singleton *GetInstance (); protected: Singleton(); private: static Singleton *Instance; ;
(...)
Finite Element Software in Mechanical - Saturday 7th August
Finite Element Project in Mechanical starts.
Helps are needed as tutorials or documents or little sources codes about this subject.
Features:
Resizable Window.
File Open / Save As
Open and Save As file as geometrical gmsh file, actually only for Point
Points Action :
Add / Select / Rectangle Select / Move
Look screenshot :
Please find attached, first step. Today, contents are limited , but ...
Tokenizer in C++ - Thursday 5th August
Tokenize string in C++ is a usual task in coding. For example to read an input file.
My self, I intend to tokenize a geometrical gmsh file. It looks like :
Point(2) = (1,0,0,0.1);
I use a C++ STL String Tokenizer from http://codeproject.com/cpp/stringtok.asp
The class and example are attached.
Author : hackervalley@free.fr http://hackervalley.free.fr
Copyright (c) 2003 hackervalley Permission is granted to copy, distribute and/or modify this document under the terms of (...)
Casting in C++ - Monday 31st May
Common standard C++ extensions are templates, run-time type indentification RTTI, namespaces and exceptions. We will focus on an another new extension of C++ : Casting in C++. New casting operator are introduced.
The C++ draft standard includes the following four casting operator:
static_cast
const_cast
dynamic_cast
reinterpret_cast
Casts are used to convert a type to an another type. Some conversions are performed automatically by the compiler. These conversions are (...)
Introduction :
Please visit http://www.fltk.org/ to have some information about this C++ GUI toolkit.
You can find lot of GUI toolkit. But I mean to start learn principle of a GUI toolkit, it’s better to start with a light and multi-platform.
Example :
I start with a easy example who use fltk version2. I choose version 2 of fltk while this version respect more actually C++ coding.
Attached source code and screenshot :
(...)
Design Pattern : Creational Pattern Singleton - Monday 9th August
Introduction
It’s important for some classes to have exactly one instance. For example have only one GUI, one engine.
To implement a singleton pattern, a common way is to define a class that has a protected constructor and a public static member function to create and retrieve an instance of the class.
Implementation
class Singleton
public: static Singleton *GetInstance (); protected: Singleton(); private: static Singleton *Instance; ;
(...)
Finite Element Software in Mechanical - Saturday 7th August
Finite Element Project in Mechanical starts.
Helps are needed as tutorials or documents or little sources codes about this subject.
Features:
Resizable Window.
File Open / Save As
Open and Save As file as geometrical gmsh file, actually only for Point
Points Action :
Add / Select / Rectangle Select / Move
Look screenshot :
Please find attached, first step. Today, contents are limited , but ...
Tokenizer in C++ - Thursday 5th August
Tokenize string in C++ is a usual task in coding. For example to read an input file.
My self, I intend to tokenize a geometrical gmsh file. It looks like :
Point(2) = (1,0,0,0.1);
I use a C++ STL String Tokenizer from http://codeproject.com/cpp/stringtok.asp
The class and example are attached.
Author : hackervalley@free.fr http://hackervalley.free.fr
Copyright (c) 2003 hackervalley Permission is granted to copy, distribute and/or modify this document under the terms of (...)
Casting in C++ - Monday 31st May
Common standard C++ extensions are templates, run-time type indentification RTTI, namespaces and exceptions. We will focus on an another new extension of C++ : Casting in C++. New casting operator are introduced.
The C++ draft standard includes the following four casting operator:




Casts are used to convert a type to an another type. Some conversions are performed automatically by the compiler. These conversions are (...)