This project is read-only.

1. What is Bluyel ?

It's a .NET4 library which supplies a set of types and a factory of data based on these types.
Types and data can be used in .NET applications developpment to design complex models.
Just add the library to your project and code.
See the Documentation for more details.
Download the solution of codes samples, present in the Downloads page of this site.

2. Features

2.1. Availables Types

  • Basics types: int, string, double, bool,
  • Physical quantity Length: all SI Multiples + Inch/Yard, comparisons, convertions,
  • LOV (List Of Values) of strings

2.2. Creates Data values

  • Of Basics types: int, string, double, bool,
  • Of Physical quantity Length: all SI Multiples + Inch/Yard,

2.3. Creates Variables

  • Of basics types: int, string, double, bool
  • Of Physical quantity length,
  • Of Data structures, with members of types: basics (int,string, double, bool), or physical quantity length,
For more details, see the page Features.

3. How to use Bluyel ?

All Bluyel functionnalities are packaged in a single .NET4 library.
  1. First, download the library: Bluyel.Core.dll from this site: goto on the Downloads page to get the lastest release,
  2. Copy the dll in the bin folder of your application,
  3. In your project, reference the namespace of the library,
  4. Create the Bluyel core,
  5. Define/Activate types you want to be available in your application,
  6. Use it, create data based on types you defined!

4. Getting started

Add the reference to the library namespace in your code:
using Bluyel.Core;

Create Core and availables types:
BluyelCore core = new BluyelCore();

// Define availables types in your application
core.TypeBuilder.DefineAllTypes();

Create Data Values to use in the application:
// create a string data value and set the initial value to: hello
DValString dvString = core.DataBuilder.CreateDValString("hello");

// create an int and set the initial value to: 12
DValInt dvInt12 = core.DataBuilder.CreateDValInt(12);

Create Simple types Variables to use in the application:
// create 2 vars, int a=10, bool b=true
DInt varA = core.DataBuilder.CreateVarInt("a", 10);
DBool varB = core.DataBuilder.CreateVarBool("b", true);

Create Simple types Data structures to use in the application:
// Create a var data structure, with some data basic type  
// struct st
//   int a= 12
//   bool b
//   string s="hello"
// end
IDStruct dataSt = core.DataBuilder.CreateVarStruct("st");

// add member: int a=12
DInt varSt_a = core.DataBuilder.AddVarStructMemberInt(dataSt, "a",12);
// add member: b
DBool varSt_b = core.DataBuilder.AddVarStructMemberBool(dataSt, "b");
// add member: string c="hello"
DString varSt_c = core.DataBuilder.AddVarStructMemberString(dataSt, "c", "hello");


Create LOV (List Of Values) to use in the application:
// create typeLOV, values are typeof string
ITypeLOVString typeLOVWeekDay = core.TypeBuilder.CreateTypeLOVString("typeLOVWeekDay");
// add values to the LOV
core.TypeBuilder.AddLOVValue(typeLOVWeekDay, "Monday");
core.TypeBuilder.AddLOVValue(typeLOVWeekDay, "Thursday");
core.TypeBuilder.AddLOVValue(typeLOVWeekDay, "Wenesday");

// create data typeof LOV
IDLOVString lovWeekDay = core.DataBuilder.CreateVarLOVString(typeLOVWeekDay, "MyLov");

// select a value in the LOV
res = core.DataBuilder.SelectLOVStringVal(lovWeekDay, "Monday");

// selected value is 'Monday'
IDVal dvSelect = lovWeekDay.SelectedVal;

Last edited Jan 5, 2014 at 5:15 PM by yvlawy, version 34