Application - defined data

Hello,
What does application defined data mean?
thnx
swetha
[81 byte] By [swetha.bsharma] at [2007-11-20 1:37:59]
# 1 Re: Application - defined data
It means custom data, such as enums, classes, structs, unions, etc that you define in your application. They are specific to an application and not a built-in type (such as char, int, long, double, bool, etc.) nor library specific (such as STL's std::string or MFC's CString).
cilu at 2007-11-10 23:17:44 >
# 2 Re: Application - defined data
To add to what Cilu said the application defined data can be defined recursivelly as "a data type composed of 1 or more application defined application data or basic types". Example:

// aplication defined data containing only basic types
struct A
{
int x;
};

// aplication defined data containing basic types and library types
struct B
{
int y;
bool b;
std::string s;
};

// aplication defined data containing basic types, library types and other application defined data
struct C
{
A a;
B b;

float f;
std::string s;
};
PadexArt at 2007-11-10 23:18:55 >
# 3 Re: Application - defined data
An application data can also be an alias of a built-in type, except that in this case there is an inplicit conversion available to the built-in type.

typedef int Code;
cilu at 2007-11-10 23:19:48 >
# 4 Re: Application - defined data
An application data can also be an alias of a built-in type, except that in this case there is an inplicit conversion available to the built-in type.

typedef int Code;
typedef is a syntactical feature. It should resolve to the type it's aliasing at compile time. No conversions, implicit or explicit, should be required unless you meant conversion to the type name it's an alias for, at compile time.
exterminator at 2007-11-10 23:20:53 >
# 5 Re: Application - defined data
typedef is a syntactical feature. It should resolve to the type it's aliasing at compile time. No conversions, implicit or explicit, should be required unless you meant conversion to the type name it's an alias for, at compile time.
Yes, of course. Exactly my point.
cilu at 2007-11-10 23:21:48 >